mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 10:01:10 +00:00
Fix: Limit COMBAT_PAUSE offset or will cause combat state detection error
This commit is contained in:
parent
31ae87d05f
commit
678a26584a
@ -16,7 +16,7 @@ class CombatState(UI):
|
|||||||
def is_combat_executing(self) -> bool:
|
def is_combat_executing(self) -> bool:
|
||||||
appear = self.appear(COMBAT_PAUSE)
|
appear = self.appear(COMBAT_PAUSE)
|
||||||
if appear:
|
if appear:
|
||||||
if COMBAT_PAUSE.button_offset[0] <= 5:
|
if COMBAT_PAUSE.button_offset[0] < 3:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user