mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-28 01:59:43 +08:00
Fix: Reset timeout timer in action_point_safe_get()
This commit is contained in:
@@ -150,14 +150,15 @@ class ActionPointHandler(UI, MapEventHandler):
|
|||||||
skip_first_screenshot = False
|
skip_first_screenshot = False
|
||||||
else:
|
else:
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
|
||||||
if self.info_bar_count() >= 2:
|
|
||||||
continue
|
|
||||||
|
|
||||||
if timeout.reached():
|
if timeout.reached():
|
||||||
logger.warning('Get action points timeout')
|
logger.warning('Get action points timeout')
|
||||||
break
|
break
|
||||||
|
|
||||||
|
if self.info_bar_count() >= 2:
|
||||||
|
timeout.reset()
|
||||||
|
continue
|
||||||
|
|
||||||
self.action_point_update()
|
self.action_point_update()
|
||||||
|
|
||||||
# Having too many current AP, probably an OCR error
|
# Having too many current AP, probably an OCR error
|
||||||
|
|||||||
Reference in New Issue
Block a user