From c8b6f11382d58fdb3237a629d565e6d1fd3bd1d9 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sun, 11 May 2025 18:28:45 +0800 Subject: [PATCH] Fix: When handing GAME_TIPS in perspective error it should check app_is_running --- module/map/camera.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/module/map/camera.py b/module/map/camera.py index 5ede63a4e..92ff381e8 100644 --- a/module/map/camera.py +++ b/module/map/camera.py @@ -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)