Explorar el Código

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

runhey hace 3 años
padre
commit
393dc4141c
Se han modificado 1 ficheros con 2 adiciones y 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")