mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
fix a bug that cause ControlsPermanentCondition effect works incorrectly. This effect was applied in totally 189 cards ?!
This commit is contained in:
parent
8612d17aaa
commit
bc2b2b4c4a
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().count(filter, source.getSourceId(), source.getControllerId(), game) < this.count;
|
||||
conditionApplies = game.getBattlefield().countAll(filter, source.getControllerId(), game) < this.count;
|
||||
break;
|
||||
case MORE_THAN:
|
||||
conditionApplies = game.getBattlefield().count(filter, source.getSourceId(), source.getControllerId(), game) > this.count;
|
||||
conditionApplies = game.getBattlefield().countAll(filter, source.getControllerId(), game) > this.count;
|
||||
break;
|
||||
case EQUAL_TO:
|
||||
conditionApplies = game.getBattlefield().count(filter, source.getSourceId(), source.getControllerId(), game) == this.count;
|
||||
conditionApplies = game.getBattlefield().countAll(filter, source.getControllerId(), game) == this.count;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue