1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 23:18:22 +08:00

Fix: When handing GAME_TIPS in perspective error it should check app_is_running

This commit is contained in:
LmeSzinc
2025-05-11 18:28:45 +08:00
parent 80ece277df
commit c8b6f11382

View File

@@ -188,15 +188,10 @@ class Camera(MapOperation):
logger.warning('Perspective error caused by akashi shop')
self.device.click(BACK_ARROW)
return False
elif not self.is_in_map() \
and not self.is_in_strategy_submarine_move() \
and not self.is_in_strategy_mob_move():
if self.appear(GAME_TIPS, offset=(20, 20)):
logger.warning('Perspective error caused by game tips')
self.device.click(GAME_TIPS)
return False
else:
raise e
elif self.appear(GAME_TIPS, offset=(20, 20)):
logger.warning('Perspective error caused by game tips')
self.device.click(GAME_TIPS)
return False
elif 'Camera outside map' in str(e):
string = str(e)
logger.warning(string)