mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fixed possible NPE in combatTriggerWillTrigger.
This commit is contained in:
@@ -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()))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user