From c878ece7c89edee446ed05f9ff853c6d559c2e50 Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Mon, 6 Jul 2026 00:36:06 +0800 Subject: [PATCH] fix: prevent starting task if command is 'Restart' --- module/alas.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/alas.py b/module/alas.py index 6b777a1..a8bc07d 100644 --- a/module/alas.py +++ b/module/alas.py @@ -208,7 +208,8 @@ class AzurLaneAutoScript: if not self.wait_until(task.next_run): del_cached_property(self, 'config') continue - self.run('start') + if task.command != 'Restart': + self.run('start') elif method == 'goto_main': logger.info('Goto main page during wait') self.run('goto_main')