1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 20:58:19 +08:00

Fix: Handle popups in OpSi map detection

This commit is contained in:
LmeSzinc
2022-06-11 23:14:59 +08:00
parent 412f6385e1
commit 52a6e44d53
2 changed files with 5 additions and 0 deletions

View File

@@ -152,6 +152,10 @@ class Camera(MapOperation):
self.ui_click(AUTO_SEARCH_REWARD, check_button=self.is_in_map, offset=(50, 50),
retry_wait=3, skip_first_screenshot=True)
return False
elif 'opsi' in self.config.task.command.lower() and self.handle_popup_confirm('OPSI'):
# Always confirm popups in OpSi, same popups in os_map_goto_globe()
logger.warning('Perspective error caused by popups')
return False
elif not self.is_in_map() \
and not self.is_in_strategy_submarine_move():
if self.appear(GAME_TIPS, offset=(20, 20)):