mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-15 22:19:18 +00:00
Fix: combat_get_trailblaze_power never gets timeout
This commit is contained in:
parent
47a07b0c52
commit
ba744b2418
@ -64,13 +64,13 @@ class CombatPrepare(StaminaStatus):
|
||||
self.device.screenshot()
|
||||
|
||||
data = self.update_stamina_status(image=self.device.image)
|
||||
if timeout.reached():
|
||||
break
|
||||
if data.stamina is None:
|
||||
continue
|
||||
# Confirm if it is > 240, sometimes just OCR errors
|
||||
# if current > 240 and timeout.reached():
|
||||
# break
|
||||
if expect_reduce and timeout.reached():
|
||||
break
|
||||
if expect_reduce and data.stamina >= before:
|
||||
continue
|
||||
if data.stamina <= 240:
|
||||
|
Loading…
Reference in New Issue
Block a user