- Fixed possible NPE in combatTriggerWillTrigger.

This commit is contained in:
Sloth
2013-06-26 13:44:11 +00:00
parent 6e111aab3a
commit f280ba4e05

View File

@@ -586,6 +586,9 @@ public class ComputerUtilCombat {
final Card source = trigger.getHostCard(); final Card source = trigger.getHostCard();
if (combat == null) { if (combat == null) {
combat = game.getCombat(); combat = game.getCombat();
if (combat == null) {
return false;
}
} }
if (!trigger.zonesCheck(game.getZoneOf(trigger.getHostCard()))) { if (!trigger.zonesCheck(game.getZoneOf(trigger.getHostCard()))) {