mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +00:00
Fix AltCost NPE
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user