Fix: Confirm discarding blessings

This commit is contained in:
LmeSzinc 2023-10-19 10:06:31 +08:00
parent c004af5346
commit 2fcc0c76ef
3 changed files with 6 additions and 1 deletions

View File

@ -211,7 +211,8 @@ class MapControl(Combat, AimDetectorMixin):
return result return result
if waypoint.interact_radius > 0: if waypoint.interact_radius > 0:
if diff < waypoint.interact_radius: if diff < waypoint.interact_radius:
self.handle_combat_interact(interval=1) if self.handle_combat_interact(interval=1):
contact.up()
# Arrive # Arrive
if near := self.minimap.is_position_near(waypoint.position, threshold=waypoint.get_threshold(end_opt)): if near := self.minimap.is_position_near(waypoint.position, threshold=waypoint.get_threshold(end_opt)):

View File

@ -204,6 +204,8 @@ class RogueBlessingSelector(RogueSelector):
if is_select_blessing_complete(): if is_select_blessing_complete():
logger.info("Select blessing complete") logger.info("Select blessing complete")
break break
if self.main.handle_popup_confirm():
continue
if interval.reached(): if interval.reached():
self.main.device.click(BLESSING_CONFIRM) self.main.device.click(BLESSING_CONFIRM)
interval.reset() interval.reset()

View File

@ -120,6 +120,8 @@ class RogueCurioSelector(RogueSelector):
if is_select_curio_complete(): if is_select_curio_complete():
break break
if self.main.handle_popup_confirm():
continue
if interval.reached(): if interval.reached():
self.main.device.click(BLESSING_CONFIRM) self.main.device.click(BLESSING_CONFIRM)
interval.reset() interval.reset()