- Added the SVar "FullCost" to add additional costs to permanents.

- Added Makeshift Mauler, Skaab Goliath and Stitched Drake.
This commit is contained in:
Sloth
2011-10-05 20:51:01 +00:00
parent 55ba45f870
commit 487e0f1715
5 changed files with 48 additions and 0 deletions

View File

@@ -4717,6 +4717,16 @@ public class CardFactoryUtil {
card.addComesIntoPlayCommand(vanishing(card, power));
}
} // Vanishing
// AddCost
if (!card.getSVar("FullCost").equals("")) {
SpellAbility[] abilities = card.getSpellAbility();
if (abilities.length > 0 && abilities[0].isSpell()) {
String altCost = card.getSVar("FullCost");
Cost abCost = new Cost(altCost, card.getName(), abilities[0].isAbility());
abilities[0].setPayCosts(abCost);
}
}
// AltCost
if (!card.getSVar("AltCost").equals("")) {