Fix AltCost NPE

This commit is contained in:
tool4EvEr
2023-08-02 12:41:11 +02:00
parent 538ff13517
commit c7a360d597

View File

@@ -22,7 +22,9 @@ public class ChangeXEffect extends SpellAbilityEffect {
if (castSA != null && tgtSA.equals(castSA) && castSA.getXManaCostPaid() != null) {
castSA.setXManaCostPaid(castSA.getXManaCostPaid() * 2);
}
tgtSA.setXManaCostPaid(castSA.getXManaCostPaid() * 2);
if (tgtSA.getXManaCostPaid() != null) {
tgtSA.setXManaCostPaid(tgtSA.getXManaCostPaid() * 2);
}
}
}
}