소스 검색

fix(Netherworld): wait too long when need retry prepare

Azure 1 년 전
부모
커밋
219a448ae9
1개의 변경된 파일과 3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      tasks/Hunt/script_task.py

+ 3 - 0
tasks/Hunt/script_task.py

@@ -175,6 +175,9 @@ class ScriptTask(GameUi, GeneralBattle, GeneralInvite, SwitchSoul, HuntAssets):
                 logger.info("Battle result is false")
                 self.ui_click_until_disappear(self.I_FALSE)
                 return False
+            if self.appear_then_click(self.I_PREPARE_HIGHLIGHT, interval=1.5):
+                logger.info('Netherworld click prepare after maybe failed')
+                continue
             # 如果三分钟还没打完,再延长五分钟
             if stuck_timer and stuck_timer.reached():
                 stuck_timer = None