mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +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();
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
if (xPay == 0) {
|
||||
|
||||
Reference in New Issue
Block a user