From 678a26584a1da1a91e64efcd80c3edf27df05a2c Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Tue, 28 Nov 2023 08:53:13 +0800 Subject: [PATCH] Fix: Limit COMBAT_PAUSE offset or will cause combat state detection error --- tasks/combat/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/combat/state.py b/tasks/combat/state.py index 25cb85d9d..9c21b3251 100644 --- a/tasks/combat/state.py +++ b/tasks/combat/state.py @@ -16,7 +16,7 @@ class CombatState(UI): def is_combat_executing(self) -> bool: appear = self.appear(COMBAT_PAUSE) if appear: - if COMBAT_PAUSE.button_offset[0] <= 5: + if COMBAT_PAUSE.button_offset[0] < 3: return True return False