From 3b7b6c6d96e0a7d62c51b015d7e15f1066d184a1 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Mon, 25 Sep 2023 12:28:18 +0800 Subject: [PATCH] Fix: Handle INFO_CLOSE during walk --- route/daily/HimekoTrial.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/route/daily/HimekoTrial.py b/route/daily/HimekoTrial.py index 99d093180..04d8279eb 100644 --- a/route/daily/HimekoTrial.py +++ b/route/daily/HimekoTrial.py @@ -1,6 +1,6 @@ from module.logger import logger from tasks.combat.combat import Combat -from tasks.daily.assets.assets_daily_trial import START_TRIAL +from tasks.daily.assets.assets_daily_trial import INFO_CLOSE, START_TRIAL from tasks.daily.trail import CharacterTrial from tasks.map.control.waypoint import Waypoint from tasks.map.keywords.plane import Jarilo_BackwaterPass @@ -20,6 +20,11 @@ class Route(RouteBase, Combat, CharacterTrial): return super().wait_next_skill(expected_end=combat_end, skip_first_screenshot=skip_first_screenshot) + def walk_additional(self) -> bool: + if self.appear_then_click(INFO_CLOSE, interval=2): + return True + return super().walk_additional() + def combat_execute(self, expected_end=None): # Battle 1/3 # Enemy cleared by follow up