1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 14:27:00 +08:00

Fix: Keep untracked enemies if MAP_HAS_MOVABLE_NORMAL_ENEMY

This commit is contained in:
LmeSzinc
2025-05-21 01:48:29 +08:00
parent d3ad772a36
commit 3c5eea5fb0
2 changed files with 18 additions and 5 deletions

View File

@@ -637,7 +637,11 @@ class Map(Fleet):
return False
nearby = self.map.select(cost_2=1).add(self.map.select(cost_2=2))
approaching = nearby.select(is_siren=True)
approaching = SelectedGrids([])
if self.config.MAP_HAS_MOVABLE_ENEMY:
approaching = approaching.add(nearby.select(is_siren=True))
if self.config.MAP_HAS_MOVABLE_NORMAL_ENEMY:
approaching = approaching.add(nearby.select(is_enemy=True))
if approaching:
grids = self.select_grids(approaching, sort=('cost_2', 'cost_1'))
self.clear_chosen_enemy(grids[0], expected='siren')