*Suppressed CounterAdded triggers when adding counters to cards via etbCounter or Bloodthirst keywords.

This commit is contained in:
jendave
2011-08-06 22:12:47 +00:00
parent 9cbde4e8c5
commit 4ef997e078

View File

@@ -977,7 +977,11 @@ public class CardFactory implements NewConstants {
else { else {
toAdd = Integer.parseInt(numCounters); toAdd = Integer.parseInt(numCounters);
} }
AllZone.TriggerHandler.suppressMode("CounterAdded");
card.addCounter(counter, toAdd); card.addCounter(counter, toAdd);
AllZone.TriggerHandler.clearSuppression("CounterAdded");
} }
});//ComesIntoPlayCommand });//ComesIntoPlayCommand
} // if etbCounter } // if etbCounter
@@ -991,7 +995,13 @@ public class CardFactory implements NewConstants {
public void execute() { public void execute() {
if(card.getController().getOpponent().getAssignedDamage() > 0) if(card.getController().getOpponent().getAssignedDamage() > 0)
{
AllZone.TriggerHandler.suppressMode("CounterAdded");
card.addCounter(Counters.P1P1, count); card.addCounter(Counters.P1P1, count);
AllZone.TriggerHandler.clearSuppression("CounterAdded");
}
} }
}); });