Fix: Handle INFO_CLOSE during walk

This commit is contained in:
LmeSzinc 2023-09-25 12:28:18 +08:00
parent ddb3ba5ae3
commit 3b7b6c6d96

View File

@ -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