mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 10:01:10 +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
|
return False
|
||||||
|
|
||||||
def combat_execute(self, expected_end=None):
|
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:
|
def walk_additional(self) -> bool:
|
||||||
if self.handle_blessing_popup():
|
if self.handle_blessing_popup():
|
||||||
@ -126,12 +127,6 @@ class RouteBase(RouteBase_, RogueExit, RogueEvent, RogueReward):
|
|||||||
if self.handle_event_option():
|
if self.handle_event_option():
|
||||||
continue
|
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):
|
def wait_until_minimap_stabled(self):
|
||||||
logger.info('Wait until minimap stabled')
|
logger.info('Wait until minimap stabled')
|
||||||
radius = self.minimap.MINIMAP_RADIUS
|
radius = self.minimap.MINIMAP_RADIUS
|
||||||
|
Loading…
Reference in New Issue
Block a user