From 409e67c726791063c37b1febc2564c047d45e084 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 13:12:22 +0000 Subject: [PATCH] convert Marrow-Gnawer to stPumpAll and AF_Token --- res/cardsfolder/marrow_gnawer.txt | 5 +++- src/forge/CardFactory_Creatures.java | 3 ++- src/forge/GameActionUtil.java | 38 ---------------------------- src/forge/StaticEffects.java | 1 - 4 files changed, 6 insertions(+), 41 deletions(-) diff --git a/res/cardsfolder/marrow_gnawer.txt b/res/cardsfolder/marrow_gnawer.txt index 932c85353f3..08b2a5257d9 100644 --- a/res/cardsfolder/marrow_gnawer.txt +++ b/res/cardsfolder/marrow_gnawer.txt @@ -1,8 +1,11 @@ Name:Marrow-Gnawer ManaCost:3 B B Types:Legendary Creature Rat Rogue -Text:All rats have fear. +Text:no text PT:2/3 +K:stPumpAll:Creature.Rat:0/0/Fear:No Condition:Rat creatures have fear. (They can't be blocked except by artifact creatures and/or black creatures.) +A:AB$Token | Cost$ T Sac<1/Rat> | TokenAmount$ X | TokenName$ Rat | TokenTypes$ Creature,Rat | TokenOwner$ Controller | TokenColors$ Black | TokenPower$ 1 | TokenToughness$ 1 | SpellDescription$ Put X 1/1 black Rat creature tokens onto the battlefield, where X is the number of Rats you control. +SVar:X:Count$TypeYouCtrl.Rat SVar:Rarity:Rare SVar:Picture:http://www.wizards.com/global/images/magic/general/marrow_gnawer.jpg SetInfo:CHK|Rare|http://magiccards.info/scans/en/chk/124.jpg diff --git a/src/forge/CardFactory_Creatures.java b/src/forge/CardFactory_Creatures.java index 02f09c7b752..a27e3f3ace8 100644 --- a/src/forge/CardFactory_Creatures.java +++ b/src/forge/CardFactory_Creatures.java @@ -8358,7 +8358,7 @@ public class CardFactory_Creatures { destroy.setBeforePayMana(CardFactoryUtil.input_targetCreature(destroy)); }//*************** END ************ END ************************** - + /* //*************** START *********** START ************************** else if(cardName.equals("Marrow-Gnawer")) { final Player player = card.getController(); @@ -8449,6 +8449,7 @@ public class CardFactory_Creatures { ability.setBeforePayMana(runtime); }//*************** END ************ END ************************** + */ //*************** START *********** START ************************** diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index f02968ad05e..982b92b7ad9 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -11674,44 +11674,7 @@ public class GameActionUtil { }// execute() }; // Muscles_Sliver - public static Command Marrow_Gnawer = new Command() { - private static final long serialVersionUID = -2500490393763095527L; - - CardList gloriousAnthemList = new CardList(); - - public void execute() { - String keyword = "Fear"; - - CardList list = gloriousAnthemList; - Card c; - // reset all cards in list - aka "old" cards - for(int i = 0; i < list.size(); i++) { - c = list.get(i); - c.removeExtrinsicKeyword(keyword); - } - - list.clear(); - PlayerZone[] zone = getZone("Marrow-Gnawer"); - - // for each zone found add +1/+1 to each card - for(int outer = 0; outer < zone.length; outer++) { - CardList creature = new CardList(); - creature.addAll(AllZone.Human_Play.getCards()); - creature.addAll(AllZone.Computer_Play.getCards()); - creature = creature.getType("Rat"); - - for(int i = 0; i < creature.size(); i++) { - c = creature.get(i); - c.addExtrinsicKeyword(keyword); - - gloriousAnthemList.add(c); - }// for inner - }// for outer - }// execute() - }; // Marrow-Gnawer - - public static Command Gemhide_Sliver = new Command() { private static final long serialVersionUID = -2941784982910968772L; @@ -16362,7 +16325,6 @@ public class GameActionUtil { commands.put("Magus_of_the_Tabernacle", Magus_of_the_Tabernacle); commands.put("Maraxus_of_Keld", Maraxus_of_Keld); //commands.put("Maro", Maro); - commands.put("Marrow_Gnawer", Marrow_Gnawer); //commands.put("Master_of_Etherium", Master_of_Etherium); commands.put("Masumaro_First_to_Live", Masumaro_First_to_Live); commands.put("Matca_Rioters", Matca_Rioters); diff --git a/src/forge/StaticEffects.java b/src/forge/StaticEffects.java index 7e0f828abe5..35bdbc75530 100644 --- a/src/forge/StaticEffects.java +++ b/src/forge/StaticEffects.java @@ -85,7 +85,6 @@ public class StaticEffects cardToEffectsList.put("Magus of the Tabernacle", new String[] {"Magus_of_the_Tabernacle"}); cardToEffectsList.put("Maraxus of Keld", new String[] {"Maraxus_of_Keld"}); //cardToEffectsList.put("Maro", new String[] {"Maro"}); - cardToEffectsList.put("Marrow-Gnawer", new String[] {"Marrow_Gnawer"}); //cardToEffectsList.put("Master of Etherium", new String[] {"Master_of_Etherium"}); cardToEffectsList.put("Masumaro, First to Live", new String[] {"Masumaro_First_to_Live"}); cardToEffectsList.put("Matca Rioters", new String[] {"Matca_Rioters"});