mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 14:49:25 +08:00
fix: do not disable or enable luahook crack all operation in run
This commit is contained in:
10
alas.py
10
alas.py
@@ -730,9 +730,6 @@ class AzurLaneAutoScript(AzurLaneAutoScript):
|
||||
|
||||
def run(self, command, skip_first_screenshot=False):
|
||||
try:
|
||||
if self.is_azur:
|
||||
luahook_disable_all(self.config, self.device)
|
||||
luahook_crack_all(self.config, self.device)
|
||||
if not skip_first_screenshot:
|
||||
self.device.screenshot()
|
||||
self.__getattribute__(command)()
|
||||
@@ -928,7 +925,12 @@ class AzurLaneAutoScript(AzurLaneAutoScript):
|
||||
|
||||
# Run
|
||||
logger.info(f'Scheduler: Start task `{task}`')
|
||||
self.scheduler_watcher.switch_task(task)
|
||||
|
||||
if self.is_azur:
|
||||
self.scheduler_watcher.switch_task(task)
|
||||
luahook_disable_all(self.config, self.device)
|
||||
luahook_crack_all(self.config, self.device)
|
||||
|
||||
self.device.stuck_record_clear()
|
||||
self.device.click_record_clear()
|
||||
logger.hr(task, level=0)
|
||||
|
||||
Reference in New Issue
Block a user