* Fixed CMC for spells (Escalate is not calculated correctly when more than 1 mode is chosen) fixes #2143.

This commit is contained in:
LevelX2 2016-08-06 13:16:49 +02:00
parent 5b5c13c137
commit 7a4b358f8a
2 changed files with 5 additions and 13 deletions

View file

@ -365,7 +365,7 @@ public class Spell extends StackObjImpl implements Card {
}
}
} else {
card.removeFromZone(game, Zone.STACK, sourceId);
card.removeFromZone(game, Zone.STACK, sourceId);
}
}
@ -503,11 +503,9 @@ public class Spell extends StackObjImpl implements Card {
return 0;
}
for (SpellAbility spellAbility : spellAbilities) {
cmc += spellAbility.getConvertedManaCost();
}
if (this.getSpellAbility().getSpellAbilityType().equals(SpellAbilityType.BASE_ALTERNATE)) {
cmc += getCard().getManaCost().convertedManaCost();
cmc += spellAbility.getConvertedXManaCost();
}
cmc += getCard().getManaCost().convertedManaCost();
return cmc;
}