From b1ccea8702bf6c8cc31da64e3378895cc37c8f49 Mon Sep 17 00:00:00 2001 From: Sloth Date: Thu, 30 May 2013 10:15:36 +0000 Subject: [PATCH] - Improved lifeInDanger AI function. --- src/main/java/forge/game/ai/ComputerUtilCombat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/forge/game/ai/ComputerUtilCombat.java b/src/main/java/forge/game/ai/ComputerUtilCombat.java index e51401a1cb5..91de0fcc8e6 100644 --- a/src/main/java/forge/game/ai/ComputerUtilCombat.java +++ b/src/main/java/forge/game/ai/ComputerUtilCombat.java @@ -300,7 +300,7 @@ public class ComputerUtilCombat { */ public static boolean lifeInDanger(final Player ai, final Combat combat) { // life in danger only cares about the player's life. Not Planeswalkers' life - if (ai.cantLose()) { + if (ai.cantLose() || combat.getAttackingPlayer() == ai) { return false; }