From e45ed35a79769a56814d183152df4f44bfbe6083 Mon Sep 17 00:00:00 2001 From: Adam Pantel <> Date: Sun, 7 Mar 2021 22:39:34 -0500 Subject: [PATCH] Fix cloned Zaxara --- .../main/java/forge/game/ability/AbilityUtils.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/forge-game/src/main/java/forge/game/ability/AbilityUtils.java b/forge-game/src/main/java/forge/game/ability/AbilityUtils.java index f5b2864de9d..3f66eac4066 100644 --- a/forge-game/src/main/java/forge/game/ability/AbilityUtils.java +++ b/forge-game/src/main/java/forge/game/ability/AbilityUtils.java @@ -1616,12 +1616,6 @@ public class AbilityUtils { 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 Ego’s 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()) { Trigger t = root.getTrigger(); 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 Ego’s 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 (sa.hasParam("ETB")) { return CardFactoryUtil.doXMath(c.getXManaCostPaid(), expr, c);