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

Refactor: Timer class

This commit is contained in:
LmeSzinc
2025-10-20 12:51:36 +08:00
parent 353eb27868
commit d4142afa22
4 changed files with 91 additions and 44 deletions

View File

@@ -169,7 +169,7 @@ class InfoHandler(ModuleBase):
# Hot fixes will kill AL if you clicked the confirm button
if self._hot_fix_check_wait.reached():
self._hot_fix_check_wait.clear()
if self._hot_fix_check_wait.started() and 3 <= self._hot_fix_check_wait.current() <= 6:
if self._hot_fix_check_wait.started() and 3 <= self._hot_fix_check_wait.current_time() <= 6:
if not self.device.app_is_running():
logger.error('Detected hot fixes from game server, game died')
raise GameNotRunningError