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 c2fd590cdd9..16dda3f86b0 100644 --- a/forge-game/src/main/java/forge/game/ability/AbilityUtils.java +++ b/forge-game/src/main/java/forge/game/ability/AbilityUtils.java @@ -1753,7 +1753,7 @@ public class AbilityUtils { // ImmediateTrigger should check for the Ability which created the trigger if (t.getSpawningAbility() != null) { root = t.getSpawningAbility().getRootAbility(); - return doXMath(root.getXManaCostPaid(), expr, c, ctb); + return doXMath(root.getXManaCostPaid() == null ? 0 : root.getXManaCostPaid(), expr, c, ctb); } // 107.3k If an object’s enters-the-battlefield triggered ability or replacement effect refers to X,