From 176ea7412b22fc6d00801cfca696dae3727613dc Mon Sep 17 00:00:00 2001 From: 0O0o0oOoO00 <11174151+0O0o0oOoO00@users.noreply.github.com> Date: Sat, 13 Sep 2025 21:49:13 +0800 Subject: [PATCH] fix: do not control lua hook when game not running --- module/luahook/crack.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/luahook/crack.py b/module/luahook/crack.py index 127c09b75..5713738c9 100644 --- a/module/luahook/crack.py +++ b/module/luahook/crack.py @@ -79,6 +79,9 @@ def do_crack_op_on_func( def do_crack_op(config: AzurLaneConfig, device: Device, ops: Union[Type[CrackOp.Op], List[Type[CrackOp.Op]]]): if not config.full_config.Hook_HookGeneral_Enable: return + if not device.app_is_running(): + logger.info("Game not running, do not crack") + return if isinstance(ops, list): l = ops else: