From f72b02ddb3a680296d74056c655dd1b9dd23b0a2 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 03:02:01 +0000 Subject: [PATCH] Deadly Grub added. (I couldn't find token picture for it) --- res/card-pictures.txt | 1 + res/cards.txt | 7 ++++++ src/forge/CardFactory_Creatures.java | 37 ++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/res/card-pictures.txt b/res/card-pictures.txt index 3a135675949..c874c4b9453 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 +deadly_grub.jpg http://www.wizards.com/global/images/magic/general/deadly_grub.jpg promised_kannushi.jpg http://www.wizards.com/global/images/magic/general/promised_kannushi.jpg body_of_jukai.jpg http://www.wizards.com/global/images/magic/general/body_of_jukai.jpg crawling_filth.jpg http://www.wizards.com/global/images/magic/general/crawling_filth.jpg diff --git a/res/cards.txt b/res/cards.txt index b0708eeba68..a55532736bf 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,10 @@ +Deadly Grub +B +Creature Insect +When Deadly Grub is put into a graveyard from the battlefield, if it had no time counters on it, put a 6/1 green Insect creature token with shroud onto the battlefield. (It can’t be the target of spells or abilities.) +3/1 +Vanishing:3 + Thief of Hope 2 B Creature Spirit diff --git a/src/forge/CardFactory_Creatures.java b/src/forge/CardFactory_Creatures.java index 5e9f6fba303..086926ddf54 100644 --- a/src/forge/CardFactory_Creatures.java +++ b/src/forge/CardFactory_Creatures.java @@ -16588,6 +16588,43 @@ public class CardFactory_Creatures { card.addDestroyCommand(destroy); }//*************** END ************ END ************************** + //*************** START *********** START ************************** + else if (cardName.equals("Deadly Grub")) + { + final Command destroy = new Command() + { + private static final long serialVersionUID = -4352349741511065318L; + + public void execute() { + if (card.getCounters(Counters.AGE) <= 0){ + + Card c = new Card(); + + c.setName("Insect"); + c.setImageName("G 6 1 Insect"); + + c.setOwner(card.getController()); + c.setController(card.getController()); + + c.setManaCost("G"); + c.setToken(true); + + c.addType("Creature"); + c.addType("Insect"); + c.setBaseAttack(6); + c.setBaseDefense(1); + c.addIntrinsicKeyword("Shroud"); + + PlayerZone play = AllZone.getZone(Constant.Zone.Play, card.getController()); + play.add(c);} + + } + }; + + card.addDestroyCommand(destroy); + }//*************** END ************ END ************************** + + //*************** START *********** START ************************** else if(cardName.equals("Boggart Harbinger")) {