mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 11:53:35 +08:00
Fix: Skip moving down when switching from auto to manual
This commit is contained in:
@@ -4,6 +4,7 @@ from module.combat.assets import *
|
||||
|
||||
class CombatManual(ModuleBase):
|
||||
auto_mode_checked = False
|
||||
auto_mode_switched = False
|
||||
manual_executed = False
|
||||
|
||||
def combat_manual_reset(self):
|
||||
@@ -19,6 +20,10 @@ class CombatManual(ModuleBase):
|
||||
"""
|
||||
if auto != 'stand_still_in_the_middle':
|
||||
return False
|
||||
# When switching from auto to manual, fleets are usually in the middle, no need to move down
|
||||
# Otherwise fleet will be moved to the bottom
|
||||
if self.auto_mode_switched:
|
||||
return False
|
||||
|
||||
self.device.long_click(MOVE_DOWN, duration=0.8)
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user