- If a Card is on the Stack, add the X Mana Cost in the CMC.

This commit is contained in:
Sol
2012-07-22 16:38:50 +00:00
parent 1fcd2b381d
commit 68e16c0514

View File

@@ -340,7 +340,14 @@ public final class CardUtil {
if (c.isToken() && !c.isCopiedToken()) {
return 0;
}
return c.getManaCost().getCMC();
int xPaid = 0;
// 2012-07-22 - If a card is on the stack, count the xManaCost in with it's CMC
if (AllZoneUtil.getCardsIn(ZoneType.Stack).contains(c)) {
xPaid = c.getXManaCostPaid();
}
return c.getManaCost().getCMC() + xPaid;
}
/**