- AiAttackController: make sure that unblockedAttackers do not get added twice, which would result in the AI over-evaluating the potential attacker damage and becoming too confident in performing an all-in, resulting in a loss next turn.

This commit is contained in:
Agetian
2017-07-08 18:56:42 +00:00
parent 533fcc9b73
commit 3352c94a53

View File

@@ -461,7 +461,12 @@ public class AiAttackController {
remainingAttackers.remove(0);
maxBlockersAfterCrew--;
}
unblockedAttackers.addAll(remainingAttackers);
for (Card remainingAttacker : remainingAttackers) {
if (!unblockedAttackers.contains(remainingAttacker)) {
unblockedAttackers.add(remainingAttacker);
}
}
int trampleDamage = 0;
for (Card attacker : blockedAttackers) {