mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- 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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user