From f96825b192a1eb6bcf7ca65610dcf2ec4e31825c Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 09:57:50 +0000 Subject: [PATCH] add Wild Growth (from original base Alpha) --- .gitattributes | 1 + res/cardsfolder/wild_growth.txt | 9 +++++++++ src/forge/Ability_Mana.java | 11 +++++++++++ 3 files changed, 21 insertions(+) create mode 100644 res/cardsfolder/wild_growth.txt diff --git a/.gitattributes b/.gitattributes index 7a8873a7f90..649cb1b835d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4874,6 +4874,7 @@ res/cardsfolder/wild_cantor.txt -text svneol=native#text/plain res/cardsfolder/wild_colos.txt -text svneol=native#text/plain res/cardsfolder/wild_elephant.txt -text svneol=native#text/plain res/cardsfolder/wild_griffin.txt -text svneol=native#text/plain +res/cardsfolder/wild_growth.txt -text svneol=native#text/plain res/cardsfolder/wild_jhovall.txt -text svneol=native#text/plain res/cardsfolder/wild_leotau.txt -text svneol=native#text/plain res/cardsfolder/wild_mongrel.txt -text svneol=native#text/plain diff --git a/res/cardsfolder/wild_growth.txt b/res/cardsfolder/wild_growth.txt new file mode 100644 index 00000000000..ce95e0ee9bd --- /dev/null +++ b/res/cardsfolder/wild_growth.txt @@ -0,0 +1,9 @@ +Name:Wild Growth +ManaCost:G +Types:Enchantment Aura +Text:Whenever enchanted land is tapped for mana, its controller adds Green to his or her mana pool (in addition to the mana the land produces). +K:Enchant Land +SVar:RemAIDeck:True +SVar:Rarity:Common +SVar:Picture:http://www.wizards.com/global/images/magic/general/wild_growth.jpg +End diff --git a/src/forge/Ability_Mana.java b/src/forge/Ability_Mana.java index 623c6efa3f8..952e56ed8d8 100644 --- a/src/forge/Ability_Mana.java +++ b/src/forge/Ability_Mana.java @@ -302,6 +302,17 @@ abstract public class Ability_Mana extends SpellAbility implements java.io.Seria if(sourceCard.getName().equals("Rainbow Vale")) { sourceCard.addExtrinsicKeyword("An opponent gains control of CARDNAME at the beginning of the next end step."); } + + if(sourceCard.isLand() && sourceCard.isEnchantedBy("Wild Growth")) { + if(sourceCard.getController().equals(AllZone.HumanPlayer)) { + AllZone.ManaPool.addExtrinsicKeyword("ManaPool:G"); + } + else { + //only works for human since compy doesn't have the concept of + //a mana pool. Also, that code would currently go in ComputerUtil.payManaCost + //(like the code for Manabarbs) + } + } if(!runcommands.isEmpty()) for(Command c:runcommands) c.execute();