mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-28 05:29:42 +08:00
Fix: Using template matching on MAP_GOTO_GLOBE_FOG
This commit is contained in:
@@ -8,8 +8,12 @@ from module.os_handler.assets import IN_MAP, ORDER_ENTER
|
|||||||
|
|
||||||
class EnemySearchingHandler(EnemySearchingHandler_):
|
class EnemySearchingHandler(EnemySearchingHandler_):
|
||||||
def is_in_map(self):
|
def is_in_map(self):
|
||||||
return self.appear(IN_MAP, offset=(200, 5)) or \
|
if self.appear(IN_MAP, offset=(200, 5)):
|
||||||
self.appear(MAP_GOTO_GLOBE_FOG)
|
return True
|
||||||
|
if self.appear(MAP_GOTO_GLOBE_FOG, offset=(5, 5)) and MAP_GOTO_GLOBE_FOG.match_appear_on(self.device.image):
|
||||||
|
return True
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
def wait_os_map_buttons(self, skip_first_screenshot=True):
|
def wait_os_map_buttons(self, skip_first_screenshot=True):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user