From ba2ace3e73ca4d96081d8ee9babe92ca20af8ef6 Mon Sep 17 00:00:00 2001 From: 0O0o0oOoO00 <11174151+0O0o0oOoO00@users.noreply.github.com> Date: Fri, 12 Sep 2025 23:35:07 +0800 Subject: [PATCH] fix: do not disable or enable luahook crack all operation in run --- alas.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/alas.py b/alas.py index 6ecf7c57f..5c9db8922 100644 --- a/alas.py +++ b/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)