From 85de2e114ec920380a2e61a0c1fa6f0726cdd10c Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 19:58:51 +0000 Subject: [PATCH] convert Animate Land to AF_Animate --- res/cardsfolder/animate_land.txt | 5 +-- src/forge/CardFactory_Instants.java | 56 ----------------------------- 2 files changed, 3 insertions(+), 58 deletions(-) diff --git a/res/cardsfolder/animate_land.txt b/res/cardsfolder/animate_land.txt index 43abc55b0fc..4949dee2e3e 100644 --- a/res/cardsfolder/animate_land.txt +++ b/res/cardsfolder/animate_land.txt @@ -1,9 +1,10 @@ Name:Animate Land ManaCost:G Types:Instant -Text:Until end of turn, target land is 3/3 creature that's still a land. +Text:no text +A:SP$Animate | Cost$ G | ValidTgts$ Land | TgtPrompt$ Select target land | Power$ 3 | Toughness$ 3 | Types$ Creature | SpellDescription$ Until end of turn, target land becomes a 3/3 creature that's still a land. SVar:RemAIDeck:True SVar:Rarity:Uncommon -SVar:Picture:http://resources.wizards.com/magic/cards/ne/en-us/card21377.jpg +SVar:Picture:http://www.wizards.com/global/images/magic/general/animate_land.jpg SetInfo:NMS|Uncommon|http://magiccards.info/scans/en/ne/101.jpg End \ No newline at end of file diff --git a/src/forge/CardFactory_Instants.java b/src/forge/CardFactory_Instants.java index 5898b9eb1b6..35e54138480 100644 --- a/src/forge/CardFactory_Instants.java +++ b/src/forge/CardFactory_Instants.java @@ -1132,62 +1132,6 @@ public class CardFactory_Instants { card.clearSpellAbility(); card.addSpellAbility(spell); }//*************** END ************ END ************************** - - - //*************** START *********** START ************************** - else if(cardName.equals("Animate Land")) { - final Card[] target = new Card[1]; - final Command untilEOT = new Command() { - private static final long serialVersionUID = -3359299797188942353L; - - public void execute() { - if(AllZone.GameAction.isCardInPlay(target[0])) { - target[0].removeType("Creature"); - } - } - }; - - SpellAbility spell = new Spell(card) { - private static final long serialVersionUID = 4890851927124377327L; - - @Override - public void resolve() { - target[0] = getTargetCard(); - if(AllZone.GameAction.isCardInPlay(target[0]) && CardFactoryUtil.canTarget(card, target[0])) { - target[0].addType("Creature"); - target[0].setBaseAttack(3); - target[0].setBaseDefense(3); - - AllZone.EndOfTurn.addUntil(untilEOT); - } - }//resolve() - - @Override - public boolean canPlayAI() { - return false; - /* all this doesnt work, computer will not attack with the animated land - - //does the computer have any land in play? - CardList land = new CardList(AllZone.Computer_Play.getCards()); - land = land.getType("Land"); - land = land.filter(new CardListFilter() - { - public boolean addCard(Card c) - { - //checks for summoning sickness, and is not tapped - return CombatUtil.canAttack(c); - } - }); - return land.size() > 1 && CardFactoryUtil.AI_isMainPhase(); - */ - } - };//SpellAbility - // spell.setChooseTargetAI(CardFactoryUtil.AI_targetType("Land", AllZone.Computer_Play)); - - spell.setBeforePayMana(CardFactoryUtil.input_targetType(spell, "Land")); - card.clearSpellAbility(); - card.addSpellAbility(spell); - }//*************** END ************ END ************************** //*************** START *********** START **************************