Fix cloned Zaxara

This commit is contained in:
Adam Pantel
2021-03-07 22:39:34 -05:00
parent 3c70759ab1
commit e45ed35a79

View File

@@ -1616,12 +1616,6 @@ public class AbilityUtils {
return CardFactoryUtil.doXMath(root.getXManaCostPaid(), expr, c); return CardFactoryUtil.doXMath(root.getXManaCostPaid(), expr, c);
} }
// If the chosen creature has X in its mana cost, that X is considered to be 0.
// The value of X in Altered Egos last ability will be whatever value was chosen for X while casting Altered Ego.
if (sa.isCopiedTrait() || !sa.getHostCard().equals(c)) {
return CardFactoryUtil.doXMath(0, expr, c);
}
if (root.isTrigger()) { if (root.isTrigger()) {
Trigger t = root.getTrigger(); Trigger t = root.getTrigger();
if (t == null) { if (t == null) {
@@ -1662,6 +1656,12 @@ public class AbilityUtils {
} }
} }
// If the chosen creature has X in its mana cost, that X is considered to be 0.
// The value of X in Altered Egos last ability will be whatever value was chosen for X while casting Altered Ego.
if (sa.isCopiedTrait() || !sa.getHostCard().equals(c)) {
return CardFactoryUtil.doXMath(0, expr, c);
}
if (root.isReplacementAbility()) { if (root.isReplacementAbility()) {
if (sa.hasParam("ETB")) { if (sa.hasParam("ETB")) {
return CardFactoryUtil.doXMath(c.getXManaCostPaid(), expr, c); return CardFactoryUtil.doXMath(c.getXManaCostPaid(), expr, c);