Fix CMC for flashbacked cards.

This should fix Conflagate/Chalice of the Void interaction.
This commit is contained in:
Nathaniel Brandes 2017-03-09 23:32:42 -08:00
parent 368dd9a5be
commit 900d68f77d
4 changed files with 77 additions and 23 deletions

View file

@ -27,8 +27,6 @@
*/
package mage.game.stack;
import java.util.*;
import mage.MageInt;
import mage.MageObject;
import mage.Mana;
@ -65,6 +63,11 @@ import mage.game.permanent.PermanentCard;
import mage.players.Player;
import mage.util.GameLog;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.List;
import java.util.UUID;
/**
*
* @author BetaSteward_at_googlemail.com
@ -554,7 +557,7 @@ public class Spell extends StackObjImpl implements Card {
return 0;
}
for (SpellAbility spellAbility : spellAbilities) {
cmc += spellAbility.getConvertedXManaCost();
cmc += spellAbility.getConvertedXManaCost(getCard());
}
cmc += getCard().getManaCost().convertedManaCost();
return cmc;