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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user