mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Fix Fulgent Distraction crash when looking for Cost that doesn't exist
This commit is contained in:
@@ -1635,7 +1635,7 @@ public class AbilityFactoryAttach {
|
|||||||
tgt.resetTargets();
|
tgt.resetTargets();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (abCost.getTotalMana().contains("X") && source.getSVar("X").equals("Count$xPaid")) {
|
if (abCost != null && abCost.getTotalMana().contains("X") && source.getSVar("X").equals("Count$xPaid")) {
|
||||||
final int xPay = ComputerUtil.determineLeftoverMana(sa, ai);
|
final int xPay = ComputerUtil.determineLeftoverMana(sa, ai);
|
||||||
|
|
||||||
if (xPay == 0) {
|
if (xPay == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user