mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Fix cloned Zaxara
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user