add Psychic Venom (from original limited base set) via generic aura code

This commit is contained in:
jendave
2011-08-06 04:25:24 +00:00
parent 6c64552fc0
commit a48dbbe674
3 changed files with 30 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_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
psychic_venom.jpg http://www.wizards.com/global/images/magic/general/psychic_venom.jpg
wanderlust.jpg http://www.wizards.com/global/images/magic/general/wanderlust.jpg
moonglove_extract.jpg http://www.wizards.com/global/images/magic/general/moonglove_extract.jpg
artisan_of_kozilek.jpg http://www.wizards.com/global/images/magic/general/artisan_of_kozilek.jpg

View File

@@ -1,3 +1,9 @@
Psychic Venom
1 U
Enchantment Aura
Whenever enchanted land becomes tapped, Psychic Venom deals 2 damage to that land's controller.
Enchant Land Curse
Wanderlust
2 G
Enchantment Aura

View File

@@ -111,6 +111,8 @@ public class GameActionUtil {
}
public static void executeTapSideEffects(Card c) {
final String activePlayer = AllZone.Phase.getActivePlayer();
/* cards with Tap side effects can be listed here, just like in
* the CardFactory classes
@@ -191,6 +193,27 @@ public class GameActionUtil {
}
}
}//end Blight
/*
* Psychic Venom - When enchanted land becomes tapped, it deals 2 damage
* to enchanted lands' controller
*/
if(c.isEnchantedBy("Psychic Venom")) {
final ArrayList<Card> cards = c.getEnchantedBy();
for(Card card:cards) {
final Card source = card;
if(card.getName().equals("Psychic Venom")) {
Ability ability = new Ability(card, "0") {
@Override
public void resolve() {
AllZone.GameAction.addDamage(activePlayer, source, 2);
}
};//Ability
ability.setStackDescription(card.getName()+" - deals 2 damage to "+activePlayer);
AllZone.Stack.add(ability);
}
}
}//end Blight
}//end executeTapSideEffects()