Fix: Add handle_blessing_popup in blessing choosing

This commit is contained in:
Zebartin 2024-05-06 21:36:29 +08:00 committed by LmeSzinc
parent 0f33ba733e
commit 6a8a7d18c8

View File

@ -187,6 +187,9 @@ class RogueBlessingSelector(RogueSelector):
else: else:
self.main.device.screenshot() self.main.device.screenshot()
if self.main.handle_blessing_popup():
logger.warning('Mistakenly recognized current page as blessing choosing page, quit')
return
if is_card_selected(self.main, target, confirm_button=BLESSING_CONFIRM): if is_card_selected(self.main, target, confirm_button=BLESSING_CONFIRM):
if enforce: if enforce:
logger.info("Buff selected (enforce)") logger.info("Buff selected (enforce)")