From 810225dd29269a30e93fc806c035eb01daed39be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sat, 11 Sep 2021 16:06:53 -0700 Subject: [PATCH] I'll thank myself for this later --- MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua b/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua index 6efc19c..1d0edaf 100644 --- a/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua +++ b/MWSE/mods/celediel/MoreAttentiveGuards/sneak.lua @@ -30,7 +30,7 @@ end local function doChecks(e) if not config.sneakEnable then return false end - if not tes3.mobilePlayer.isSneaking then return false end + if not e.target.isSneaking then return false end if not e.detector.object.isGuard then return false end if e.target ~= tes3.mobilePlayer then return false end