mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
add Psychic Venom (from original limited base set) via generic aura code
This commit is contained in:
@@ -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
|
||||||
|
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
|
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
|
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
|
artisan_of_kozilek.jpg http://www.wizards.com/global/images/magic/general/artisan_of_kozilek.jpg
|
||||||
|
|||||||
@@ -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
|
Wanderlust
|
||||||
2 G
|
2 G
|
||||||
Enchantment Aura
|
Enchantment Aura
|
||||||
|
|||||||
@@ -112,6 +112,8 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
public static void executeTapSideEffects(Card c) {
|
public static void executeTapSideEffects(Card c) {
|
||||||
|
|
||||||
|
final String activePlayer = AllZone.Phase.getActivePlayer();
|
||||||
|
|
||||||
/* cards with Tap side effects can be listed here, just like in
|
/* cards with Tap side effects can be listed here, just like in
|
||||||
* the CardFactory classes
|
* the CardFactory classes
|
||||||
*/
|
*/
|
||||||
@@ -192,6 +194,27 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}//end Blight
|
}//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()
|
}//end executeTapSideEffects()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user