1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-16 02:17:28 +08:00

Opt: Better enemy selection when having movable normal enemies

This commit is contained in:
LmeSzinc
2021-12-30 12:00:23 +08:00
parent 8d2318d19e
commit da84af0e50
4 changed files with 40 additions and 16 deletions

View File

@@ -61,12 +61,15 @@ class CampaignBase(CampaignUI, Map, AutoSearchCombat):
.delete(self.map.select(is_boss=True))
logger.info(f'Enemy remain: {remain}')
if remain.count > 0:
if self.clear_siren():
return True
self.clear_mechanism()
return self.battle_default()
if self.config.MAP_HAS_MOVABLE_NORMAL_ENEMY:
if self.clear_any_enemy(sort=('cost_2',)):
return True
return self.battle_default()
else:
if self.clear_siren():
return True
self.clear_mechanism()
return self.battle_default()
else:
result = self.battle_boss()
return result