Jelajahi Sumber

fix(Secret): Exit the task correctly if it has completed

ryland 10 bulan lalu
induk
melakukan
74c1999a89
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      tasks/Secret/script_task.py

+ 2 - 0
tasks/Secret/script_task.py

@@ -82,10 +82,12 @@ class ScriptTask(GameUi, GeneralBattle, SwitchSoul, SecretAssets):
             if not layer:
             if not layer:
                 if self.appear(WeeklyTriflesAssets.I_WT_SE_SHARE):
                 if self.appear(WeeklyTriflesAssets.I_WT_SE_SHARE):
                     logger.warning('You have completed the weekly trifles, skip')
                     logger.warning('You have completed the weekly trifles, skip')
+                    self.ui_click(self.I_UI_BACK_BLUE, stop=self.I_UI_BACK_YELLOW)
                     break
                     break
                 text = self.O_SE_TOTAL_TIME.ocr_single(self.device.image)
                 text = self.O_SE_TOTAL_TIME.ocr_single(self.device.image)
                 if '尚未' not in text:
                 if '尚未' not in text:
                     logger.warning('You have completed the weekly trifles, skip')
                     logger.warning('You have completed the weekly trifles, skip')
+                    self.ui_click(self.I_UI_BACK_BLUE, stop=self.I_UI_BACK_YELLOW)
                     break
                     break
                 continue
                 continue
             if layer >= 6:
             if layer >= 6: