detect some dead NPCs in neighbouring cells

This commit is contained in:
Lilian Jónsdóttir 2020-08-16 17:39:31 -07:00
parent c7dd172785
commit 8b2788fbf0

View file

@ -402,6 +402,7 @@ local function isIgnoredNPC(npc)
-- local fight = getFightFromSpawnedReference(obj.id) -- ! calling this hundreds of times is bad for performance lol
-- if (fight or 0) > 70 then isHostile = true end
isVampire = obj.head.vampiric and true or false -- don't set a reference ... is bool even a reference type??
if obj.id:match("[Dd]ead") or obj.name:match("[Dd]ead") then isDead = true end
end
local isFargothActive = obj.id:match("fargoth") and fargothCheck() or false