mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 16:19:03 +08:00
Fix: 修复退役后出现行走超时的问题
This commit is contained in:
parent
47cec0af36
commit
d43ff8a3f7
@ -38,11 +38,6 @@ class Combat(HPBalancer, UrgentCommissionHandler, EnemySearchingHandler, Retirem
|
||||
if self.config.ENABLE_MAP_FLEET_LOCK and not self.is_in_map():
|
||||
if self.is_combat_loading():
|
||||
return True
|
||||
if self.handle_retirement():
|
||||
self.map_offensive()
|
||||
return False
|
||||
if self.handle_combat_low_emotion():
|
||||
return False
|
||||
|
||||
if self.appear(BATTLE_PREPARATION):
|
||||
return True
|
||||
@ -57,6 +52,8 @@ class Combat(HPBalancer, UrgentCommissionHandler, EnemySearchingHandler, Retirem
|
||||
|
||||
if self.appear_then_click(MAP_OFFENSIVE, interval=1):
|
||||
continue
|
||||
if self.handle_combat_low_emotion():
|
||||
continue
|
||||
|
||||
# Break
|
||||
if self.combat_appear():
|
||||
|
||||
@ -125,6 +125,12 @@ class Fleet(Camera, MapOperation, AmbushHandler):
|
||||
result_mystery = mystery
|
||||
|
||||
# Combat
|
||||
if self.config.ENABLE_MAP_FLEET_LOCK and not self.is_in_map():
|
||||
if self.handle_retirement():
|
||||
self.map_offensive()
|
||||
walk_timeout.reset()
|
||||
if self.handle_combat_low_emotion():
|
||||
walk_timeout.reset()
|
||||
if self.combat_appear():
|
||||
self.combat(expected_end=self._expected_combat_end(expected), fleet_index=self.fleet_current_index)
|
||||
self.hp_get()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user