From 6a8a7d18c8232cfcb705e2e225dee6a98a015252 Mon Sep 17 00:00:00 2001 From: Zebartin <16185081+Zebartin@users.noreply.github.com> Date: Mon, 6 May 2024 21:36:29 +0800 Subject: [PATCH] Fix: Add handle_blessing_popup in blessing choosing --- tasks/rogue/blessing/blessing.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/rogue/blessing/blessing.py b/tasks/rogue/blessing/blessing.py index 42fdeb381..416723e31 100644 --- a/tasks/rogue/blessing/blessing.py +++ b/tasks/rogue/blessing/blessing.py @@ -187,6 +187,9 @@ class RogueBlessingSelector(RogueSelector): else: 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 enforce: logger.info("Buff selected (enforce)")