- Little fix for the latest AI attack improvement.

This commit is contained in:
jendave
2011-08-06 13:36:02 +00:00
parent 6608cf61c2
commit 26f9f35c1b

View File

@@ -325,7 +325,7 @@ public class ComputerUtil_Attack2 {
}
}
// A creature should attack if it can't be killed
if (CombatUtil.totalDamageOfBlockers(attacker, blockers) < attacker.getKillDamage()) return true;
if (CombatUtil.totalDamageOfBlockers(attacker, blockers) < attacker.getKillDamage() && !canBeKilledByOne) return true;
return (canKillAll && !canBeKilledByOne); // A creature should attack if it can't be killed or can kill any blocker
}