- Fix Fulgent Distraction crash when looking for Cost that doesn't exist

This commit is contained in:
Sol
2012-10-26 03:27:18 +00:00
parent 34cb8ed23b
commit 03fc9d281f

View File

@@ -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) {