mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28: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 {
|
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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user