From efb3e6b4bfeb02f6a5ef051801b68e6f4af6296d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Tue, 23 Mar 2021 18:52:16 -0700 Subject: [PATCH] don't alert disabled guards --- MWSE/mods/celediel/MoreAttentiveGuards/combat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MWSE/mods/celediel/MoreAttentiveGuards/combat.lua b/MWSE/mods/celediel/MoreAttentiveGuards/combat.lua index ff0f048..929e6cf 100644 --- a/MWSE/mods/celediel/MoreAttentiveGuards/combat.lua +++ b/MWSE/mods/celediel/MoreAttentiveGuards/combat.lua @@ -72,7 +72,7 @@ local function alertGuards(aggressor, cell) for npc in cell:iterateReferences(tes3.objectType.npc) do local distance = playerPos:distance(npc.position) - if npc.object.isGuard and npc.mobile and distance <= config.combatDistance then + if not npc.disabled and npc.object.isGuard and npc.mobile and distance <= config.combatDistance then log("Alerting %s, %s units away, to the combat!", npc.object.name, distance) if config.combatDialogue then