Tested consume_spirit.txt with Announce with X that must be colored - works!

This commit is contained in:
Maxmtg
2013-04-03 19:12:55 +00:00
parent 7ffd8008d5
commit d4d19f4f65
2 changed files with 2 additions and 4 deletions

View File

@@ -118,9 +118,7 @@ public class CostPartMana extends CostPart {
final Card source = ability.getSourceCard();
ManaCostBeingPaid toPay = new ManaCostBeingPaid(getManaToPay());
if (this.getAmountOfX() > 0 && !ability.getSVar("X").equals("Count$xPaid")) {
// if X cost is a defined value, other than xPaid
if (this.getAmountOfX() > 0 && !ability.getSVar("X").equals("Count$xPaid")) { // announce X will overwrite whatever was in card script
// this currently only works for things about Targeted object
int xCost = AbilityUtils.calculateAmount(source, "X", ability) * this.getAmountOfX();
byte xColor = MagicColor.fromName(ability.hasParam("XColor") ? ability.getParam("XColor") : "1");