Explorar o código

fix(TrueOrochi): "Wait too long" due to battle

runhey %!s(int64=3) %!d(string=hai) anos
pai
achega
393dc4141c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      tasks/TrueOrochi/script_task.py

+ 2 - 0
tasks/TrueOrochi/script_task.py

@@ -125,6 +125,8 @@ class ScriptTask(OrochiScriptTask, TrueOrochiAssets):
             if check_timer.reached():
                 logger.warning('Battle timeout')
                 check_timer.reset()
+                self.device.stuck_record_clear()
+                self.device.stuck_record_add('BATTLE_STATUS_S')
             sleep(0.5)
 
         logger.info("Battle process end")