*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:
jendave
2011-08-06 22:23:33 +00:00
parent 01718a4e24
commit 462b626c31
2 changed files with 5 additions and 11 deletions

View File

@@ -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);
AllZone.TriggerHandler.runTrigger("CounterAdded", runParams);
for(int i=0;i<(multiplier*n);i++)
{
AllZone.TriggerHandler.runTrigger("CounterAdded", runParams);
}
AllZone.GameAction.checkStateEffects();

View File

@@ -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");
}
}