mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
*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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user