- A little fix for the implementation of split card CMC check in Card.hasProperty.

This commit is contained in:
Agetian
2013-03-05 13:00:49 +00:00
parent 286a1d48bc
commit 1d7e80d675

View File

@@ -7142,7 +7142,7 @@ public class Card extends GameEntity implements Comparable<Card> {
y = this.getNetDefense();
} else if (property.startsWith("cmc")) {
rhs = property.substring(5);
if (getRules() != null && getRules().getSplitType() == CardSplitType.Split) {
if (getRules() != null && getRules().getSplitType() == CardSplitType.Split && getCurState() == CardCharacteristicName.Original) {
y = getState(CardCharacteristicName.LeftSplit).getManaCost().getCMC();
y2 = getState(CardCharacteristicName.RightSplit).getManaCost().getCMC();
} else {