1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-09 18:39:04 +08:00

Fix: Missing interval on STRATEGIC_SEARCH_MAP_OPTION_OFF

This commit is contained in:
LmeSzinc 2022-12-18 16:37:12 +08:00
parent b12eabc44a
commit 385fff216f

View File

@ -16,8 +16,9 @@ class StrategicSearchHandler(EnemySearchingHandler):
else:
self.device.screenshot()
if STRATEGIC_SEARCH_MAP_OPTION_OFF.match_appear_on(self.device.image) \
and self.appear_then_click(STRATEGIC_SEARCH_MAP_OPTION_OFF, interval=2):
if self.appear(STRATEGIC_SEARCH_MAP_OPTION_OFF, offset=(20, 20), interval=2) \
and STRATEGIC_SEARCH_MAP_OPTION_OFF.match_appear_on(self.device.image):
self.device.click(STRATEGIC_SEARCH_MAP_OPTION_OFF)
continue
if self.appear(STRATEGIC_SEARCH_POPUP_CHECK, offset=(20, 20)):
return True