From bc2b2b4c4aff36e07a9d8d3db5696c6cd5780550 Mon Sep 17 00:00:00 2001 From: Li REN Date: Sun, 14 Jul 2013 01:41:03 -0400 Subject: [PATCH] fix a bug that cause ControlsPermanentCondition effect works incorrectly. This effect was applied in totally 189 cards ?! --- .../condition/common/ControlsPermanentCondition.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mage/src/mage/abilities/condition/common/ControlsPermanentCondition.java b/Mage/src/mage/abilities/condition/common/ControlsPermanentCondition.java index 74d76ce6675..c25bf3f00c6 100644 --- a/Mage/src/mage/abilities/condition/common/ControlsPermanentCondition.java +++ b/Mage/src/mage/abilities/condition/common/ControlsPermanentCondition.java @@ -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; }