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)