Gelectrode was added.

This commit is contained in:
jendave
2011-08-06 02:59:25 +00:00
parent 0f8c62c3b6
commit fd2f623905
3 changed files with 54 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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<list.size();i++)
{
final Card card = list.get(i);
Ability ability2 = new Ability(card, "0")
{
public void resolve()
{
if (card.getController().equals("Human"))
{
String[] choices =
{ "Yes", "No" };
Object choice = AllZone.Display.getChoice(
"Untap gelectrode?", choices);
if (choice.equals("Yes")) {
card.untap();}
}
if (card.getController().equals("Computer")) {card.untap();}
}
}; // ability2
ability2.setStackDescription(card.getName() + " - "
+ c.getController() + " played an instant or sorcery spell, you may untap Gelectrode.");
AllZone.Stack.add(ability2);
}
}
}// Gelectrode
public static void playCard_Forced_Fruition(Card c)
{
PlayerZone hplay = AllZone.getZone(Constant.Zone.Play,