From fd2f6239052faffb974c3e3e57c58a4a54273e9c Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 02:59:25 +0000 Subject: [PATCH] Gelectrode was added. --- res/card-pictures.txt | 1 + res/cards.txt | 7 ++++++ src/forge/GameActionUtil.java | 46 +++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) diff --git a/res/card-pictures.txt b/res/card-pictures.txt index 0af8b334944..152fee29b33 100644 --- a/res/card-pictures.txt +++ b/res/card-pictures.txt @@ -18,6 +18,7 @@ forest.jpg http://resources.wizards.com/magic/cards/unh/en-us/card73946.jpg forest1.jpg http://gatherer.wizards.com/handlers/image.ashx?type=card&multiverseid=2748 forest2.jpg http://gatherer.wizards.com/handlers/image.ashx?type=card&multiverseid=587 forest3.jpg http://gatherer.wizards.com/handlers/image.ashx?type=card&multiverseid=586 +gelectrode.jpg http://www.wizards.com/global/images/magic/general/gelectrode.jpg rathi_trapper.jpg http://www.wizards.com/global/images/magic/general/rathi_trapper.jpg hollow_dogs.jpg http://www.wizards.com/global/images/magic/general/hollow_dogs.jpg lurking_nightstalker.jpg http://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=6557 diff --git a/res/cards.txt b/res/cards.txt index ac0dbd8c217..98866879501 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,10 @@ +Gelectrode +1 U R +Creature Weird +Whenever you play an instant or sorcery spell, you may untap Gelectrode. +0/1 +abDamageCP T:1 + Rathi Trapper 1 B Creature Human Rebel Rogue diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index ba83652b1c5..63b84a61d62 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -107,6 +107,7 @@ public class GameActionUtil playCard_Noxious_Hatchling(c); playCard_Witch_Maw_Nephilim(c); playCard_Forced_Fruition(c); + playCard_Gelectrode(c); playCard_Standstill(c); playCard_Memory_Erosion(c); playCard_SolKanar(c); @@ -1238,6 +1239,51 @@ public class GameActionUtil } }// Witch-Maw Nephilim + public static void playCard_Gelectrode(Card c) + { + final String controller = c.getController(); + + final PlayerZone play = AllZone.getZone(Constant.Zone.Play, + controller); + + CardList list = new CardList(); + list.addAll(play.getCards()); + + list = list.getName("Gelectrode"); + + if (list.size() > 0 && ( c.getType().contains("Instant") || c.getType().contains("Sorcery") )){ + + for (int i=0;i