mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- If a Card is on the Stack, add the X Mana Cost in the CMC.
This commit is contained in:
@@ -340,7 +340,14 @@ public final class CardUtil {
|
|||||||
if (c.isToken() && !c.isCopiedToken()) {
|
if (c.isToken() && !c.isCopiedToken()) {
|
||||||
return 0;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user