From fd4ae6c266a98fa8727d9cbf0dbbee552c10e585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sat, 22 Aug 2020 12:07:25 -0700 Subject: [PATCH] less stupidity and selfish functions too --- MWSE/mods/celediel/NPCsGoHome/main.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/MWSE/mods/celediel/NPCsGoHome/main.lua b/MWSE/mods/celediel/NPCsGoHome/main.lua index b9ff1c8..341e5a5 100644 --- a/MWSE/mods/celediel/NPCsGoHome/main.lua +++ b/MWSE/mods/celediel/NPCsGoHome/main.lua @@ -433,17 +433,18 @@ local function isIgnoredNPC(npc) log(common.logLevels.large, ("Checking NPC:%s (%s or %s): id blocked:%s, %s blocked:%s " .. -- "guard:%s dead:%s vampire:%s werewolf:%s dreamer:%s follower:%s hostile:%s %s%s"), -- obj.name, npc.object.id, npc.object.baseObject and npc.object.baseObject.id or "nil", -- - config.ignored[string.lower(obj.id)], obj.sourceMod, config.ignored[string.lower(obj.sourceMod)], -- + config.ignored[obj.id:lower()], obj.sourceMod, config.ignored[obj.sourceMod:lower()], -- obj.isGuard, isDead, isVampire, isWerewolf, (obj.class and obj.class.id == "Dreamers"), -- - followers[obj.id], isHostile, obj.id:match("fargoth") and "fargoth:" or "", obj.id:match("fargoth") and isFargothActive or "") + followers[npc.object.id], isHostile, obj.id:match("fargoth") and "fargoth:" or "", -- + obj.id:match("fargoth") and isFargothActive or "") - return config.ignored[string.lower(obj.id)] or -- - config.ignored[string.lower(obj.sourceMod)] or -- + return config.ignored[obj.id:lower()] or -- + config.ignored[obj.sourceMod:lower()] or -- obj.isGuard or -- isFargothActive or -- isDead or -- don't move dead NPCS isHostile or -- - followers[obj.id] or -- ignore followers + followers[npc.object.id] or -- ignore followers isVampire or -- isWerewolf or -- (obj.class and obj.class.id == "Dreamers") --