From de63b259f70cd0cf74b32db2288b0ec6776efe37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sun, 2 Aug 2020 10:40:25 -0700 Subject: [PATCH] don't actually need all that --- MWSE/mods/celediel/MoreAttentiveGuards/combat.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/MWSE/mods/celediel/MoreAttentiveGuards/combat.lua b/MWSE/mods/celediel/MoreAttentiveGuards/combat.lua index ba82a23..5f3a7e7 100644 --- a/MWSE/mods/celediel/MoreAttentiveGuards/combat.lua +++ b/MWSE/mods/celediel/MoreAttentiveGuards/combat.lua @@ -72,12 +72,9 @@ this.onCombatStarted = function(e) return end - local cell = tes3.getPlayerCell() - if cell.isInterior and not cell.behavesAsExterior then + for _, cell in pairs(tes3.getActiveCells()) do alertGuards(e.actor, cell) - else - for _, extCell in pairs(tes3.getActiveCells()) do alertGuards(e.actor, extCell) end end end