From 6df8bc61459e9abbdffda2ef30725f4f5350c856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sat, 11 Sep 2021 16:41:35 -0700 Subject: [PATCH] stop logging about non-faction NPCs --- MWSE/mods/celediel/MoreAttentiveGuards/combat.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MWSE/mods/celediel/MoreAttentiveGuards/combat.lua b/MWSE/mods/celediel/MoreAttentiveGuards/combat.lua index b0bbf30..5938d41 100644 --- a/MWSE/mods/celediel/MoreAttentiveGuards/combat.lua +++ b/MWSE/mods/celediel/MoreAttentiveGuards/combat.lua @@ -115,15 +115,15 @@ end local function factionHelperChecks(npc) if not config.factionMembersHelp then return false end - if not genericNPCChecks(npc) then return false end - - -- now that that's out of the way local name = npc.object.name local npcFaction = npc.object.faction if not npcFaction then return false end if not npcFaction.playerJoined then return false end + if not genericNPCChecks(npc) then return false end + + -- now that that's out of the way if config.ignoredFactions[npcFaction.id] then log("Ignored faction %s, not alerting %s", npcFaction, name) return false