mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- A little fix for the implementation of split card CMC check in Card.hasProperty.
This commit is contained in:
@@ -7142,7 +7142,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
y = this.getNetDefense();
|
y = this.getNetDefense();
|
||||||
} else if (property.startsWith("cmc")) {
|
} else if (property.startsWith("cmc")) {
|
||||||
rhs = property.substring(5);
|
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();
|
y = getState(CardCharacteristicName.LeftSplit).getManaCost().getCMC();
|
||||||
y2 = getState(CardCharacteristicName.RightSplit).getManaCost().getCMC();
|
y2 = getState(CardCharacteristicName.RightSplit).getManaCost().getCMC();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user