add Horizon Canopy (from Future Sight)

This commit is contained in:
jendave
2011-08-06 13:59:21 +00:00
parent 689e7cdc9b
commit fe58bc520b
3 changed files with 46 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -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/hope_charm.txt -text svneol=native#text/plain
res/cardsfolder/hopping_automaton.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/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/horizon_drake.txt -text svneol=native#text/plain
res/cardsfolder/horn_of_deafening.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 res/cardsfolder/horn_of_greed.txt -text svneol=native#text/plain

View File

@@ -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

View File

@@ -2279,6 +2279,42 @@ class CardFactory_Lands {
}); });
}//*************** END ************ END ************************** }//*************** 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; return card;
} }