mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Fix 107.3j
This commit is contained in:
@@ -1715,6 +1715,12 @@ public class AbilityUtils {
|
||||
return doXMath(root.getXManaCostPaid(), expr, c, ctb);
|
||||
}
|
||||
|
||||
// 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 doXMath(0, expr, c, ctb);
|
||||
}
|
||||
|
||||
if (root.isTrigger()) {
|
||||
Trigger t = root.getTrigger();
|
||||
if (t == null) {
|
||||
@@ -1755,16 +1761,8 @@ 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 doXMath(0, expr, c, ctb);
|
||||
}
|
||||
|
||||
if (root.isReplacementAbility()) {
|
||||
if (sa.hasParam("ETB")) {
|
||||
return doXMath(c.getXManaCostPaid(), expr, c, ctb);
|
||||
}
|
||||
if (root.isReplacementAbility() && sa.hasParam("ETB")) {
|
||||
return doXMath(c.getXManaCostPaid(), expr, c, ctb);
|
||||
}
|
||||
|
||||
return doXMath(0, expr, c, ctb);
|
||||
|
||||
@@ -174,8 +174,10 @@ public class CardFactory {
|
||||
if (targetSA.isBestow()) {
|
||||
c.animateBestow();
|
||||
}
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* copySpellAbilityAndPossiblyHost.
|
||||
@@ -306,7 +308,7 @@ public class CardFactory {
|
||||
buildPlaneAbilities(card);
|
||||
}
|
||||
CardFactoryUtil.setupKeywordedAbilities(card); // Should happen AFTER setting left/right split abilities to set Fuse ability to both sides
|
||||
card.getView().updateState(card);
|
||||
card.updateStateForView();
|
||||
}
|
||||
|
||||
private static void buildPlaneAbilities(Card card) {
|
||||
|
||||
Reference in New Issue
Block a user