mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 14:19:25 +08:00
Fix: When handing GAME_TIPS in perspective error it should check app_is_running
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user