Forráskód Böngészése

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

Azure 1 éve
szülő
commit
219a448ae9
1 módosított fájl, 3 hozzáadás és 0 törlés
  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