From 6365693cef0a6c734797a1de28e62317703fd2bb Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Thu, 30 May 2024 12:37:03 +0800 Subject: [PATCH] Fix: [ALAS] Game restarted twice if close game during wait --- alas.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alas.py b/alas.py index 86264a4ad..adb212e2e 100644 --- a/alas.py +++ b/alas.py @@ -446,7 +446,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')