*Suppressed CounterAdded triggers when adding counters via Devour keyword.

*Converted Caldera Hellion to script. (It was hardcoded inside the devour code o_O)
This commit is contained in:
jendave
2011-08-06 22:12:55 +00:00
parent 4ef997e078
commit 248c95123a
2 changed files with 8 additions and 8 deletions

View File

@@ -1,9 +1,11 @@
Name:Caldera Hellion
ManaCost:3 R R
Types:Creature Hellion
Text:When CARDNAME enters the battlefield, it deals 3 damage to each creature.
Text:no text
PT:3/3
K:Devour:1
T:Mode$ ChangesZone | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigDamage | TriggerDescription$ When CARDNAME enters the battlefield, it deals 3 damage to each creature.
SVar:TrigDamage:AB$DamageAll | Cost$ 0 | ValidCards$ Creature | ValidDescription$ each creature. | NumDmg$ 3
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/caldera_hellion.jpg
SetInfo:ALA|Rare|http://magiccards.info/scans/en/ala/95.jpg

View File

@@ -801,19 +801,17 @@ public class CardFactory implements NewConstants {
@Override
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();
}
} else if(card.getName().equals("Caldera Hellion")) {
CardList creatures = AllZoneUtil.getCreaturesInPlay();
for(int i = 0; i < creatures.size(); i++) {
Card crd = creatures.get(i);
crd.addDamage(3, card);
}
}
}