- Improved Alternative Cost strings when the cost is 0.

This commit is contained in:
Sloth
2012-10-25 18:11:45 +00:00
parent 4c0380ab3e
commit 6b316fcbe4

View File

@@ -1506,7 +1506,11 @@ public final class GameActionUtil {
newSA.setBasicSpell(false);
newSA.setPayCosts(cost);
newSA.setManaCost("");
newSA.setDescription(sa.getDescription() + " (by paying " + cost.toSimpleString() + " instead of its mana cost)");
String costString = cost.toSimpleString();
if (costString.equals("")) {
costString = "0";
}
newSA.setDescription(sa.getDescription() + " (by paying " + costString + " instead of its mana cost)");
alternatives.add(newSA);
}
}