Hi there!
TrinityCore here.
When setting a creatures unit_flags in either creature_template to 512 or through pUnit:SetUInt32Value(59, 512) the creature no longer attacks players. Instead, it just stands passively and takes damage.
When the creature is immune to NPC, it is supposed to ignore all NPCs around it but not players. My best bet is that this is caused by an error in the Eluna AI
local function Brain_GhoulOnSpawn(event, pUnit)
pUnit:SetUInt32Value(59, 512)
pUnit:SendUnitSay("Spawned",0)
end
RegisterCreatureEvent(50302, 5,Brain_GhoulOnSpawn)
Hi there!
TrinityCore here.
When setting a creatures
unit_flagsin eithercreature_templateto 512 or throughpUnit:SetUInt32Value(59, 512)the creature no longer attacks players. Instead, it just stands passively and takes damage.When the creature is immune to NPC, it is supposed to ignore all NPCs around it but not players. My best bet is that this is caused by an error in the Eluna AI