Fix: Limit COMBAT_PAUSE offset or will cause combat state detection error

This commit is contained in:
LmeSzinc 2023-11-28 08:53:13 +08:00
parent 31ae87d05f
commit 678a26584a

View File

@ -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