mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 16:47:03 +08:00
Fix: Handle random OCR error in action points
This commit is contained in:
@@ -145,6 +145,9 @@ class ActionPointHandler(UI, MapEventHandler):
|
||||
|
||||
self.action_point_update()
|
||||
|
||||
# Having too many current AP, probably an OCR error
|
||||
if self._action_point_current > 600:
|
||||
continue
|
||||
# Having boxes
|
||||
if sum(self._action_point_box[1:]) > 0:
|
||||
break
|
||||
|
||||
@@ -10,6 +10,7 @@ STRATEGIC_SEARCH_SCROLL = Scroll(STRATEGIC_SEARCH_SCROLL_AREA, color=(247, 211,
|
||||
class StrategicSearchHandler(EnemySearchingHandler):
|
||||
def strategy_search_enter(self, skip_first_screenshot=False):
|
||||
logger.info('Strategic search enter')
|
||||
self.interval_clear(STRATEGIC_SEARCH_MAP_OPTION_OFF)
|
||||
while 1:
|
||||
if skip_first_screenshot:
|
||||
skip_first_screenshot = False
|
||||
|
||||
Reference in New Issue
Block a user