mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 00:35:34 +00:00
Fix: Clear blessings after executing a battle so blessings can be handled in rotation_set()
This commit is contained in:
parent
bad70f415a
commit
09e675758c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user