- Improved lifeInDanger AI function.

This commit is contained in:
Sloth
2013-05-30 10:15:36 +00:00
parent cc0e999f8e
commit b1ccea8702

View File

@@ -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;
}