mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
add Horizon Canopy (from Future Sight)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
9
res/cardsfolder/horizon_canopy.txt
Normal file
9
res/cardsfolder/horizon_canopy.txt
Normal 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
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user