Fix: Clear blessings after executing a battle so blessings can be handled in rotation_set()

This commit is contained in:
LmeSzinc 2024-05-08 18:41:42 +08:00
parent bad70f415a
commit 09e675758c

View File

@ -33,7 +33,8 @@ class RouteBase(RouteBase_, RogueExit, RogueEvent, RogueReward):
return False
def combat_execute(self, expected_end=None):
return super().combat_execute(expected_end=self.combat_expected_end)
super().combat_execute(expected_end=self.combat_expected_end)
self.clear_blessing()
def walk_additional(self) -> bool:
if self.handle_blessing_popup():
@ -126,12 +127,6 @@ class RouteBase(RouteBase_, RogueExit, RogueEvent, RogueReward):
if self.handle_event_option():
continue
def _goto(self, *args, **kwargs):
result = super()._goto(*args, **kwargs)
if 'enemy' in result:
self.clear_blessing()
return result
def wait_until_minimap_stabled(self):
logger.info('Wait until minimap stabled')
radius = self.minimap.MINIMAP_RADIUS