mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
*Suppressed CounterAdded triggers when adding counters to cards via etbCounter or Bloodthirst keywords.
This commit is contained in:
@@ -977,7 +977,11 @@ public class CardFactory implements NewConstants {
|
||||
else {
|
||||
toAdd = Integer.parseInt(numCounters);
|
||||
}
|
||||
AllZone.TriggerHandler.suppressMode("CounterAdded");
|
||||
|
||||
card.addCounter(counter, toAdd);
|
||||
|
||||
AllZone.TriggerHandler.clearSuppression("CounterAdded");
|
||||
}
|
||||
});//ComesIntoPlayCommand
|
||||
} // if etbCounter
|
||||
@@ -991,7 +995,13 @@ public class CardFactory implements NewConstants {
|
||||
|
||||
public void execute() {
|
||||
if(card.getController().getOpponent().getAssignedDamage() > 0)
|
||||
{
|
||||
AllZone.TriggerHandler.suppressMode("CounterAdded");
|
||||
|
||||
card.addCounter(Counters.P1P1, count);
|
||||
|
||||
AllZone.TriggerHandler.clearSuppression("CounterAdded");
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user