mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 23:33:33 +08:00
Fix: Move AUTO_SEARCH_OS_MAP_OPTION click to the bottom
This commit is contained in:
@@ -163,10 +163,6 @@ class MapEventHandler(EnemySearchingHandler):
|
|||||||
Returns:
|
Returns:
|
||||||
bool: If clicked.
|
bool: If clicked.
|
||||||
"""
|
"""
|
||||||
if self.appear(AUTO_SEARCH_OS_MAP_OPTION_OFF, offset=(5, 50), interval=3) \
|
|
||||||
and AUTO_SEARCH_OS_MAP_OPTION_OFF.match_appear_on(self.device.image):
|
|
||||||
self.device.click(AUTO_SEARCH_OS_MAP_OPTION_OFF)
|
|
||||||
return True
|
|
||||||
if self.appear(AUTO_SEARCH_OS_MAP_OPTION_OFF, offset=(5, 50)) \
|
if self.appear(AUTO_SEARCH_OS_MAP_OPTION_OFF, offset=(5, 50)) \
|
||||||
and AUTO_SEARCH_OS_MAP_OPTION_OFF.match_appear_on(self.device.image) \
|
and AUTO_SEARCH_OS_MAP_OPTION_OFF.match_appear_on(self.device.image) \
|
||||||
and self.info_bar_count() >= 2:
|
and self.info_bar_count() >= 2:
|
||||||
@@ -174,3 +170,7 @@ class MapEventHandler(EnemySearchingHandler):
|
|||||||
if self.appear(AUTO_SEARCH_REWARD, offset=(20, 50)):
|
if self.appear(AUTO_SEARCH_REWARD, offset=(20, 50)):
|
||||||
self.os_auto_search_quit()
|
self.os_auto_search_quit()
|
||||||
raise CampaignEnd
|
raise CampaignEnd
|
||||||
|
if self.appear(AUTO_SEARCH_OS_MAP_OPTION_OFF, offset=(5, 50), interval=3) \
|
||||||
|
and AUTO_SEARCH_OS_MAP_OPTION_OFF.match_appear_on(self.device.image):
|
||||||
|
self.device.click(AUTO_SEARCH_OS_MAP_OPTION_OFF)
|
||||||
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user