adding Blight (from Legends) via generic Aura handling code

This commit is contained in:
jendave
2011-08-06 04:23:33 +00:00
parent 036ae24c6b
commit 36094b9391
3 changed files with 27 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ snow_covered_mountain.jpg http://www.wizards.com/global/images/magic/gene
snow_covered_mountain1.jpg http://www.wizards.com/global/images/magic/general/snow_covered_mountain.jpg snow_covered_mountain1.jpg http://www.wizards.com/global/images/magic/general/snow_covered_mountain.jpg
snow_covered_mountain2.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg snow_covered_mountain2.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
snow_covered_mountain3.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg snow_covered_mountain3.jpg http://www.magickartenmarkt.de/img/cards/Ice_Age/snow_covered_mountain.jpg
blight.jpg http://www.wizards.com/global/images/magic/general/blight.jpg
sphinx_of_magosi.jpg http://www.wizards.com/global/images/magic/general/sphinx_of_magosi.jpg sphinx_of_magosi.jpg http://www.wizards.com/global/images/magic/general/sphinx_of_magosi.jpg
time_of_heroes.jpg http://www.wizards.com/global/images/magic/general/time_of_heroes.jpg time_of_heroes.jpg http://www.wizards.com/global/images/magic/general/time_of_heroes.jpg
lifetap.jpg http://www.wizards.com/global/images/magic/general/lifetap.jpg lifetap.jpg http://www.wizards.com/global/images/magic/general/lifetap.jpg

View File

@@ -1,3 +1,9 @@
Blight
B B
Enchantment Aura
When enchanted land becomes tapped, destroy it.
Enchant Land Curse
Sphinx of Magosi Sphinx of Magosi
3 U U U 3 U U U
Creature Sphinx Creature Sphinx

View File

@@ -168,6 +168,26 @@ public class GameActionUtil {
AllZone.Stack.add(ability); AllZone.Stack.add(ability);
}//for }//for
} }
/*
* Blight - When enchanted land becomes tapped, destroy it.
*/
if(c.isEnchantedBy("Blight")) {
final ArrayList<Card> blights = c.getEnchantedBy();
final Card target = c;
for(Card blight:blights) {
if(blight.getName().equals("Blight")) {
Ability ability = new Ability(blight, "0") {
@Override
public void resolve() {
AllZone.GameAction.destroy(target);
}
};//Ability
ability.setStackDescription(blight.getName()+" - Destroy enchanted land.");
AllZone.Stack.add(ability);
}
}
}//end Blight
}//end executeTapSideEffects() }//end executeTapSideEffects()