1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 14:09:25 +08:00

fix: do not disable or enable luahook crack all operation in run

This commit is contained in:
0O0o0oOoO00
2025-09-12 23:35:07 +08:00
parent 5c8c4d388e
commit ba2ace3e73

10
alas.py
View File

@@ -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)