From 13a55a4fcbb647c6f3d1f0722bef7bbe0fc20d71 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 13:18:04 +0000 Subject: [PATCH] convert Time of Heroes to stPumpAll keyword --- res/cardsfolder/time_of_heroes.txt | 3 ++- src/forge/GameActionUtil.java | 43 ------------------------------ src/forge/StaticEffects.java | 1 - 3 files changed, 2 insertions(+), 45 deletions(-) diff --git a/res/cardsfolder/time_of_heroes.txt b/res/cardsfolder/time_of_heroes.txt index 15a96f38912..1adde241c9a 100644 --- a/res/cardsfolder/time_of_heroes.txt +++ b/res/cardsfolder/time_of_heroes.txt @@ -1,7 +1,8 @@ Name:Time of Heroes ManaCost:1 W Types:Enchantment -Text:Each creature you control with a level counter on it gets +2/+2. +Text:no text +K:stPumpAll:Creature.countersGE1LEVEL+YouCtrl:2/2:No Condition:Each creature you control with a level counter on it gets +2/+2. SVar:Rarity:Uncommon SVar:Picture:http://www.wizards.com/global/images/magic/general/time_of_heroes.jpg SetInfo:ROE|Uncommon|http://magiccards.info/scans/en/roe/49.jpg diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index 4065f9f7424..1ec9b5c509b 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -15767,48 +15767,6 @@ public class GameActionUtil { }; // Brawn **/ - public static Command Time_of_Heroes = new Command() { - private static final long serialVersionUID = 2490232366851007733L; - CardList gloriousAnthemList = new CardList(); - - public void execute() { - 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.addSemiPermanentAttackBoost(-2); - c.addSemiPermanentDefenseBoost(-2); - } - - // add +1/+1 to cards - list.clear(); - PlayerZone[] zone = getZone("Time of Heroes"); - - // for each zone found add +1/+1 to each card - for(int outer = 0; outer < zone.length; outer++) { - CardList creature = new CardList( - zone[outer].getCards()); - creature = creature.filter(new CardListFilter() - { - public boolean addCard(Card crd) - { - return crd.getCounters(Counters.LEVEL) > 0; - } - }); - - for(int i = 0; i < creature.size(); i++) { - c = creature.get(i); - c.addSemiPermanentAttackBoost(2); - c.addSemiPermanentDefenseBoost(2); - - gloriousAnthemList.add(c); - }// for inner - }// for outer - }// execute() - }; // Time of Heroes - - /* public static Command Eldrazi_Monument = new Command() { @@ -16257,7 +16215,6 @@ public class GameActionUtil { commands.put("Terravore", Terravore); commands.put("Tethered_Griffin", Tethered_Griffin); commands.put("That_Which_Was_Taken", That_Which_Was_Taken); - commands.put("Time_of_Heroes", Time_of_Heroes); commands.put("Transcendent_Master", Transcendent_Master); commands.put("Umbra_Stalker", Umbra_Stalker); diff --git a/src/forge/StaticEffects.java b/src/forge/StaticEffects.java index 6bfe4960477..db85a62be25 100644 --- a/src/forge/StaticEffects.java +++ b/src/forge/StaticEffects.java @@ -121,7 +121,6 @@ public class StaticEffects cardToEffectsList.put("Tethered Griffin", new String[] {"Tethered_Griffin"}); cardToEffectsList.put("That Which Was Taken", new String[] {"That_Which_Was_Taken"}); cardToEffectsList.put("The Tabernacle at Pendrell Vale", new String[] {"Tabernacle"}); - cardToEffectsList.put("Time of Heroes", new String[] {"Time_of_Heroes"}); cardToEffectsList.put("Transcendent Master", new String[]{"Transcendent_Master"}); cardToEffectsList.put("Umbra Stalker", new String[] {"Umbra_Stalker"});