AI: improved game stability on blocking (related to #13290)

This commit is contained in:
Oleg Agafonov 2025-02-04 10:21:13 +04:00
parent 8aa432067a
commit 7035736a6c
3 changed files with 18 additions and 20 deletions

View file

@ -822,7 +822,7 @@ public class CombatGroup implements Serializable, Copyable<CombatGroup> {
// too few blockers
if (attacker.getMinBlockedBy() > 1 && !blockers.isEmpty() && blockers.size() < attacker.getMinBlockedBy()) {
for (UUID blockerId : new ArrayList<>(blockers)) {
game.getCombat().removeBlocker(blockerId, game); // !
game.getCombat().removeBlocker(blockerId, game);
}
blockers.clear();
blockerOrder.clear();