- Tweaked doAssault AI.

This commit is contained in:
Sloth
2012-02-15 18:36:15 +00:00
parent 913e8791bc
commit 9969dc0dc8

View File

@@ -359,7 +359,7 @@ public class ComputerUtilAttack {
remainingAttackers.remove(blockableAttackers.get(i));
}
if ((CombatUtil.sumDamageIfUnblocked(remainingAttackers, human) > human.getLife())
if ((CombatUtil.sumDamageIfUnblocked(remainingAttackers, human) >= human.getLife())
&& AllZone.getHumanPlayer().canLoseLife()
&& !((human.cantLoseForZeroOrLessLife() || human.cantLose() || computer.cantWin()) && (human.getLife() < 1))) {
return true;