- Added Kentaro, the Smiling Cat

This commit is contained in:
swordshine
2013-05-10 13:05:25 +00:00
parent 12604e8697
commit 42b18e2fbc
3 changed files with 16 additions and 1 deletions

View File

@@ -1219,7 +1219,12 @@ public final class GameActionUtil {
if (sa.isSpell() && keyword.startsWith("Alternative Cost")) {
final SpellAbility newSA = sa.copy();
newSA.setBasicSpell(false);
final Cost cost = new Cost(keyword.substring(17), false).add(newSA.getPayCosts().copyWithNoMana());
String kw = keyword;
if (keyword.contains("ConvertedManaCost")) {
final String cmc = Integer.toString(sa.getSourceCard().getCMC());
kw = keyword.replace("ConvertedManaCost", cmc);
}
final Cost cost = new Cost(kw.substring(17), false).add(newSA.getPayCosts().copyWithNoMana());
newSA.setPayCosts(cost);
newSA.setDescription(sa.getDescription() + " (by paying " + cost.toSimpleString() + " instead of its mana cost)");
alternatives.add(newSA);