From 7cc6dfd8cc5ef3440414e26e81e7c1a0d8fa5ba1 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 05:46:39 +0000 Subject: [PATCH] *Fixed Mad Auntie being able to target itself for regeneration. *Added Smokespew Invoker,Overgrown Battlement --- forge.preferences | 12 ++++++++ res/cards.txt | 16 +++++++++++ src/forge/CardFactory_Creatures.java | 42 ++++++++++++++++++++++++++-- 3 files changed, 68 insertions(+), 2 deletions(-) diff --git a/forge.preferences b/forge.preferences index e69de29bb2d..a9a508522c8 100644 --- a/forge.preferences +++ b/forge.preferences @@ -0,0 +1,12 @@ +#Forge +#Sun Aug 15 10:52:51 CEST 2010 +gui.laf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel +AI.stack.land=false +gui.new=true +stack.offset=tiny +card.images.size=medium +card.scale.larger.than.original=true +card.overlay=true +stack.max.size=3 +loss.condition.milling=true +gui.laf.fonts=false diff --git a/res/cards.txt b/res/cards.txt index c2c60a13aa1..465c1c1e052 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,19 @@ +Overgrown Battlement +1 G +Creature Wall +no text +0/4 +Defender +SVar:Rarity:Common + +Smokespew Invoker +2 B +Creature Zombie Mutant +no text +3/1 +abPumpTgt 7 B:-3/-3 +SVar:Rarity:Common + Elvish Vanguard 1 G Creature Elf diff --git a/src/forge/CardFactory_Creatures.java b/src/forge/CardFactory_Creatures.java index f73e58656b7..710e51f619a 100644 --- a/src/forge/CardFactory_Creatures.java +++ b/src/forge/CardFactory_Creatures.java @@ -6936,7 +6936,7 @@ public class CardFactory_Creatures { card.addSpellAbility(ability); ability.setDescription("tap: Regenerate another target Goblin."); - ability.setBeforePayMana(CardFactoryUtil.input_targetCreature_NoCost_TapAbility(ability)); + ability.setBeforePayMana(CardFactoryUtil.input_targetCreature_NoCost_TapAbility_NoTargetSelf(ability)); }//*************** END ************ END ************************** //*************** START *********** START ************************** @@ -20761,7 +20761,45 @@ public class CardFactory_Creatures { }); }//*************** END ************ END ************************** - + + //*************** START *********** START ************************** + else if(cardName.equals("Overgrown Battlement")) { + final Ability_Mana ability = new Ability_Mana(card,"tap: add G to your mana pool for each creature with defender you control.") { + + private static final long serialVersionUID = 422282090183907L; + + @Override + public String mana() { + String res = ""; + + CardList cl = new CardList(AllZone.getZone(Constant.Zone.Play, card.getController()).getCards()); + + cl = cl.filter(new CardListFilter() { + + public boolean addCard(Card c) + { + return c.hasKeyword("Defender"); + } + + }); + + for(int i=0;i