*Updated AEther Flash to trigger

This commit is contained in:
jendave
2011-08-06 16:13:44 +00:00
parent 699a03765b
commit bba8e9b200
2 changed files with 3 additions and 19 deletions

View File

@@ -1,7 +1,9 @@
Name:AEther Flash Name:AEther Flash
ManaCost:2 R R ManaCost:2 R R
Types:Enchantment Types:Enchantment
Text:Whenever a creature enters the battlefield, AEther Flash deals 2 damage to it. Text:no text
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature | TriggerZones$ Battlefield | Execute$ TrigDealDamage | TriggerDescription$ Whenever a creature enters the battlefield, CARDNAME deals 2 damage to it.
SVar:TrigDealDamage:AB$DealDamage | Cost$ 0 | Defined$ Triggered | NumDmg$ 2
SVar:RemAIDeck:True SVar:RemAIDeck:True
SVar:Rarity:Rare SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/aether_flash.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/aether_flash.jpg

View File

@@ -108,24 +108,6 @@ public class PlayerZone_ComesIntoPlay extends DefaultPlayerZone {
} }
} }
if(c.isCreature()) {
CardList flashes = AllZoneUtil.getCardsInPlay("AEther Flash");
final Card enteringCard = c;
for(final Card flash:flashes){
SpellAbility ability = new Ability(flash, "") {
@Override
public void resolve() {
enteringCard.addDamage(2, flash);
}
};
StringBuilder sb = new StringBuilder();
sb.append(flash).append(" - deals 2 damage to ").append(enteringCard.getName());
ability.setStackDescription(sb.toString());
AllZone.Stack.add(ability);
}
}
if(c.isType("Scarecrow") && AllZoneUtil.isCardInPlay("Reaper King", c.getController())) { if(c.isType("Scarecrow") && AllZoneUtil.isCardInPlay("Reaper King", c.getController())) {
CardList kings = AllZoneUtil.getCardsInPlay("Reaper King"); CardList kings = AllZoneUtil.getCardsInPlay("Reaper King");
kings.remove(c); kings.remove(c);