mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Revert "fix a bug that cause ControlsPermanentCondition effect works incorrectly. This effect was applied in totally 189 cards ?!"
This reverts commit bc2b2b4c4a
.
This commit is contained in:
parent
bc2b2b4c4a
commit
670864d78b
1 changed files with 3 additions and 3 deletions
|
@ -97,13 +97,13 @@ public class ControlsPermanentCondition implements Condition {
|
|||
|
||||
switch ( this.type ) {
|
||||
case FEWER_THAN:
|
||||
conditionApplies = game.getBattlefield().countAll(filter, source.getControllerId(), game) < this.count;
|
||||
conditionApplies = game.getBattlefield().count(filter, source.getSourceId(), source.getControllerId(), game) < this.count;
|
||||
break;
|
||||
case MORE_THAN:
|
||||
conditionApplies = game.getBattlefield().countAll(filter, source.getControllerId(), game) > this.count;
|
||||
conditionApplies = game.getBattlefield().count(filter, source.getSourceId(), source.getControllerId(), game) > this.count;
|
||||
break;
|
||||
case EQUAL_TO:
|
||||
conditionApplies = game.getBattlefield().countAll(filter, source.getControllerId(), game) == this.count;
|
||||
conditionApplies = game.getBattlefield().count(filter, source.getSourceId(), source.getControllerId(), game) == this.count;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue