fix a bug that cause ControlsPermanentCondition effect works incorrectly. This effect was applied in totally 189 cards ?!

This commit is contained in:
Li REN 2013-07-14 01:41:03 -04:00
parent 8612d17aaa
commit bc2b2b4c4a

View file

@ -97,13 +97,13 @@ public class ControlsPermanentCondition implements Condition {
switch ( this.type ) { switch ( this.type ) {
case FEWER_THAN: 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; break;
case MORE_THAN: 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; break;
case EQUAL_TO: 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; break;
} }