mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
*Removed the CounterAdded suppression. Goes against my understanding of "Enters the battlefield with counters" but apparently there are rulings on Flourishing Defenses.
*Corrected runTrigger call for Counter Adding, it should trigger once per counter added.
This commit is contained in:
@@ -540,8 +540,10 @@ public class Card extends MyObservable {
|
||||
HashMap<String,Object> runParams = new HashMap<String,Object>();
|
||||
runParams.put("Card", this);
|
||||
runParams.put("CounterType", counterName);
|
||||
for(int i=0;i<(multiplier*n);i++)
|
||||
{
|
||||
AllZone.TriggerHandler.runTrigger("CounterAdded", runParams);
|
||||
|
||||
}
|
||||
|
||||
AllZone.GameAction.checkStateEffects();
|
||||
|
||||
|
||||
@@ -802,12 +802,8 @@ public class CardFactory implements NewConstants {
|
||||
public void resolve() {
|
||||
int totalCounters = numCreatures[0] * multiplier;
|
||||
|
||||
AllZone.TriggerHandler.suppressMode("CounterAdded");
|
||||
|
||||
card.addCounter(Counters.P1P1, totalCounters);
|
||||
|
||||
AllZone.TriggerHandler.clearSuppression("CounterAdded");
|
||||
|
||||
if(card.getName().equals("Skullmulcher")) {
|
||||
for(int i = 0; i < numCreatures[0]; i++) {
|
||||
card.getController().drawCard();
|
||||
@@ -975,11 +971,9 @@ 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
|
||||
@@ -994,11 +988,9 @@ 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