From f1234e93db574d6155d73d928cdf84a09d51835a Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 09:52:01 +0000 Subject: [PATCH] convert Loam Lion to stPumpSelf --- res/cardsfolder/loam_lion.txt | 3 +- src/forge/GameActionUtil.java | 64 ----------------------------------- src/forge/StaticEffects.java | 2 -- 3 files changed, 2 insertions(+), 67 deletions(-) diff --git a/res/cardsfolder/loam_lion.txt b/res/cardsfolder/loam_lion.txt index b8f510e31d0..37704d6398e 100644 --- a/res/cardsfolder/loam_lion.txt +++ b/res/cardsfolder/loam_lion.txt @@ -1,8 +1,9 @@ Name:Loam Lion ManaCost:W Types:Creature Cat -Text:Loam Lion gets +1/+2 as long as you control a Forest. +Text:no text PT:1/1 +K:stPumpSelf:Creature:1/2:isPresent Forest.YouCtrl:CARDNAME gets +1/+2 as long as you control a Forest. SVar:Rarity:Uncommon SVar:Picture:http://www.wizards.com/global/images/magic/general/loam_lion.jpg End diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index b440f58a3e0..95c59b16152 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -14890,68 +14890,6 @@ public class GameActionUtil { }// execute() }; - /* - public static Command Kird_Ape = new Command() { - private static final long serialVersionUID = 3448725650293971110L; - - public void execute() { - // get all creatures - CardList list = AllZoneUtil.getCardsInPlay("Kird Ape"); - - for(int i = 0; i < list.size(); i++) { - Card c = list.get(i); - if(hasForest(c)) { - c.setBaseAttack(2); - c.setBaseDefense(3); - } else { - c.setBaseAttack(1); - c.setBaseDefense(1); - } - } - }// execute() - - private boolean hasForest(Card c) { - CardList forests = AllZoneUtil.getPlayerTypeInPlay(c.getController(), "Forest"); - if(forests.size() > 0) return true; - else return false; - } - }; - */ - - public static Command Loam_Lion = new Command() { - private static final long serialVersionUID = -6996623102170747897L; - - public void execute() { - // get all creatures - CardList list = new CardList(); - list.addAll(AllZone.Human_Play.getCards()); - list.addAll(AllZone.Computer_Play.getCards()); - list = list.getName("Loam Lion"); - - for(int i = 0; i < list.size(); i++) { - Card c = list.get(i); - if(hasForest(c)) { - c.setBaseAttack(2); - c.setBaseDefense(3); - } else { - c.setBaseAttack(1); - c.setBaseDefense(1); - } - } - }// execute() - - private boolean hasForest(Card c) { - PlayerZone play = AllZone.getZone( - Constant.Zone.Play, c.getController()); - - CardList land = new CardList(); - land.addAll(play.getCards()); - - land = land.getType("Forest"); - if(land.size() > 0) return true; - else return false; - } - }; public static Command Vexing_Beetle = new Command() { @@ -21150,8 +21088,6 @@ public class GameActionUtil { commands.put("Gaeas_Avenger", Gaeas_Avenger); commands.put("Vexing_Beetle", Vexing_Beetle); commands.put("Sejiri_Merfolk", Sejiri_Merfolk); - //commands.put("Kird_Ape", Kird_Ape); - commands.put("Loam_Lion", Loam_Lion); commands.put("Sedge_Troll", Sedge_Troll); commands.put("Hedge_Troll", Hedge_Troll); commands.put("Wild_Nacatl", Wild_Nacatl); diff --git a/src/forge/StaticEffects.java b/src/forge/StaticEffects.java index 9250ed4cf62..f9e643415b0 100644 --- a/src/forge/StaticEffects.java +++ b/src/forge/StaticEffects.java @@ -85,8 +85,6 @@ public class StaticEffects cardToEffectsList.put("Serpent of the Endless Sea", new String[] {"Serpent_of_the_Endless_Sea"}); cardToEffectsList.put("Vexing Beetle", new String[] {"Vexing_Beetle"}); cardToEffectsList.put("Sejiri Merfolk", new String[] {"Sejiri_Merfolk"}); - cardToEffectsList.put("Loam Lion", new String[] {"Loam_Lion"}); - //cardToEffectsList.put("Kird Ape", new String[] {"Kird_Ape"}); cardToEffectsList.put("Sedge Troll", new String[] {"Sedge_Troll"}); cardToEffectsList.put("Hedge Troll", new String[] {"Hedge_Troll"}); cardToEffectsList.put("Wild Nacatl", new String[] {"Wild_Nacatl"});