1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 05:08:19 +08:00
This commit is contained in:
2025-02-17 01:23:06 +08:00
6 changed files with 55 additions and 24 deletions

View File

@@ -173,6 +173,12 @@ class InfoHandler(ModuleBase):
if not self.device.app_is_running():
logger.error('Detected hot fixes from game server, game died')
raise GameNotRunningError
if self.match_template_color(LOGIN_CHECK, offset=(30, 30)):
logger.error('Account logged out, '
'probably because account kicked by server maintenance or another log in')
# Kill game, because game patches after maintenance can only be downloaded at game startup
self.device.app_stop()
raise GameNotRunningError
self._hot_fix_check_wait.clear()
return appear