diff --git a/.gitattributes b/.gitattributes index dce3dec6d4e..14e1e4499d8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2306,6 +2306,7 @@ res/cardsfolder/hoofprints_of_the_stag.txt -text svneol=native#text/plain res/cardsfolder/hope_charm.txt -text svneol=native#text/plain res/cardsfolder/hopping_automaton.txt -text svneol=native#text/plain res/cardsfolder/horde_of_notions.txt -text svneol=native#text/plain +res/cardsfolder/horizon_canopy.txt -text svneol=native#text/plain res/cardsfolder/horizon_drake.txt -text svneol=native#text/plain res/cardsfolder/horn_of_deafening.txt -text svneol=native#text/plain res/cardsfolder/horn_of_greed.txt -text svneol=native#text/plain diff --git a/res/cardsfolder/horizon_canopy.txt b/res/cardsfolder/horizon_canopy.txt new file mode 100644 index 00000000000..b77ee0ed4ca --- /dev/null +++ b/res/cardsfolder/horizon_canopy.txt @@ -0,0 +1,9 @@ +Name:Horizon Canopy +ManaCost:no cost +Types:Land +Text:no text +A:AB$Draw|Cost$1 T Sac<1/CARDNAME>|NumCards$1|SpellDescription$Draw a card. +SVar:RemAIDeck:True +SVar:Rarity:Rare +SVar:Picture:http://www.wizards.com/global/images/magic/general/horizon_canopy.jpg +End \ No newline at end of file diff --git a/src/forge/CardFactory_Lands.java b/src/forge/CardFactory_Lands.java index 14a04d3e3fa..9e6bad9fa07 100644 --- a/src/forge/CardFactory_Lands.java +++ b/src/forge/CardFactory_Lands.java @@ -2279,6 +2279,42 @@ class CardFactory_Lands { }); }//*************** END ************ END ************************** + //*************** START ************ START ************************** + else if(cardName.equals("Horizon Canopy")) { + /* + * Tap, Pay 1 life: Add one W or G to your mana pool. + */ + Ability_Cost abCost = new Ability_Cost("T PayLife<1>", cardName, true); + Ability_Activated mana = new Ability_Activated(card, abCost, null) { + private static final long serialVersionUID = -5393697921811242255L; + + @Override + public void resolve() { + String color = ""; + String[] colors = new String[] {Constant.Color.White, Constant.Color.Green}; + + Object o = AllZone.Display.getChoice("Choose mana color", colors); + color = (String) o; + + if(color.equals("white")) color = "W"; + else if(color.equals("green")) color = "G"; + + Card mp = AllZone.ManaPool; + mp.addExtrinsicKeyword("ManaPool:" + color); + } + }; + + StringBuilder sbDesc = new StringBuilder(); + sbDesc.append(abCost).append("Add G or W to your mana pool."); + mana.setDescription(sbDesc.toString()); + + StringBuilder sbStack = new StringBuilder(); + sbStack.append(cardName).append(" - add G or W to your mana pool."); + mana.setStackDescription(sbStack.toString()); + + card.addSpellAbility(mana); + }//*************** END ************ END ************************** + return card; }