Fix NPE with Numa

This commit is contained in:
tool4EvEr
2022-03-02 23:27:38 +01:00
parent 88d80c64fc
commit f815a61775

View File

@@ -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 objects enters-the-battlefield triggered ability or replacement effect refers to X,