From a5e85aec8f31ec966ff2b25715a15ef833e734e2 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Mon, 12 May 2025 18:57:36 +0800 Subject: [PATCH] Fix: Handle action point popup without black-blurred background --- module/os_handler/action_point.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/module/os_handler/action_point.py b/module/os_handler/action_point.py index 689c24628..a66ed1810 100644 --- a/module/os_handler/action_point.py +++ b/module/os_handler/action_point.py @@ -347,8 +347,11 @@ class ActionPointHandler(UI, MapEventHandler): self.device.screenshot() # End - if self.appear(OS_CHECK, offset=(20, 20)): - break + # sometimes you have action point popup without black-blurred background + # ACTION_POINT_CANCEL and OS_CHECK both appears + if not self.appear(ACTION_POINT_CANCEL, offset=(20, 20)): + if self.appear(OS_CHECK, offset=(20, 20)): + break # Click if self.appear_then_click(ACTION_POINT_CANCEL, offset=(20, 20), interval=3): continue