瀏覽代碼

fix(task): Waiting too long to get into the fight

runhey 3 年之前
父節點
當前提交
12c4091eea
共有 1 個文件被更改,包括 2 次插入 和 0 次删除
  1. 2 0
      tasks/DemonEncounter/script_task.py

+ 2 - 0
tasks/DemonEncounter/script_task.py

@@ -81,6 +81,8 @@ class ScriptTask(GameUi, GeneralBattle, DemonEncounterAssets):
         time.sleep(5)
         self.device.stuck_record_add('BATTLE_STATUS_S')
         self.wait_until_disappear(self.I_BOSS_GATHER)
+        self.device.stuck_record_clear()
+        self.device.stuck_record_add('BATTLE_STATUS_S')
         config = self.con
         self.run_general_battle(config)