mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- As Foretold: a simpler check for split half CMCs.
This commit is contained in:
@@ -111,10 +111,10 @@ public class CardProperty {
|
|||||||
|
|
||||||
if (property.startsWith("leftcmc")) {
|
if (property.startsWith("leftcmc")) {
|
||||||
rhs = property.substring(9);
|
rhs = property.substring(9);
|
||||||
y = card.getState(CardStateName.LeftSplit).getManaCost().getCMC();
|
y = card.getCMC(Card.SplitCMCMode.LeftSplitCMC);
|
||||||
} else if (property.startsWith("rightcmc")) {
|
} else if (property.startsWith("rightcmc")) {
|
||||||
rhs = property.substring(10);
|
rhs = property.substring(10);
|
||||||
y = card.getState(CardStateName.RightSplit).getManaCost().getCMC();
|
y = card.getCMC(Card.SplitCMCMode.RightSplitCMC);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user