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:
@@ -535,13 +535,15 @@ public class Card extends MyObservable {
|
|||||||
counters.remove(p1Counter);
|
counters.remove(p1Counter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Run triggers
|
//Run triggers
|
||||||
HashMap<String,Object> runParams = new HashMap<String,Object>();
|
HashMap<String,Object> runParams = new HashMap<String,Object>();
|
||||||
runParams.put("Card", this);
|
runParams.put("Card", this);
|
||||||
runParams.put("CounterType", counterName);
|
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();
|
AllZone.GameAction.checkStateEffects();
|
||||||
|
|
||||||
|
|||||||
@@ -802,12 +802,8 @@ public class CardFactory implements NewConstants {
|
|||||||
public void resolve() {
|
public void resolve() {
|
||||||
int totalCounters = numCreatures[0] * multiplier;
|
int totalCounters = numCreatures[0] * multiplier;
|
||||||
|
|
||||||
AllZone.TriggerHandler.suppressMode("CounterAdded");
|
|
||||||
|
|
||||||
card.addCounter(Counters.P1P1, totalCounters);
|
card.addCounter(Counters.P1P1, totalCounters);
|
||||||
|
|
||||||
AllZone.TriggerHandler.clearSuppression("CounterAdded");
|
|
||||||
|
|
||||||
if(card.getName().equals("Skullmulcher")) {
|
if(card.getName().equals("Skullmulcher")) {
|
||||||
for(int i = 0; i < numCreatures[0]; i++) {
|
for(int i = 0; i < numCreatures[0]; i++) {
|
||||||
card.getController().drawCard();
|
card.getController().drawCard();
|
||||||
@@ -975,11 +971,9 @@ 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
|
||||||
@@ -994,11 +988,9 @@ 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