From bbf55294b07404e4cf7f0ca1af056576a9b5a4ad Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 5 Jan 2022 18:01:35 -0500 Subject: [PATCH] Core/Creature: Log an error for Creatures spawned with temporary auras Port From (https://github.com/TrinityCore/TrinityCore/commit/73e7719dbf924aa2f7f2e9a7d7ec3ca04595f988) --- Source/Game/Globals/ObjectManager.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/Game/Globals/ObjectManager.cs b/Source/Game/Globals/ObjectManager.cs index d19110f3c..366f489f1 100644 --- a/Source/Game/Globals/ObjectManager.cs +++ b/Source/Game/Globals/ObjectManager.cs @@ -2045,6 +2045,12 @@ namespace Game continue; } + if (AdditionalSpellInfo.GetDuration() > 0) + { + Log.outError(LogFilter.Sql, $"Creature (Entry: {entry}) has temporary aura (spell {spellId}) in `auras` field in `creature_template_addon`."); + continue; + } + creatureAddon.auras[i++] = spellId; } @@ -2159,6 +2165,12 @@ namespace Game continue; } + if (AdditionalSpellInfo.GetDuration() > 0) + { + Log.outError(LogFilter.Sql, $"Creature (GUID: {guid}) has temporary aura (spell {spellId}) in `auras` field in `creature_addon`."); + continue; + } + creatureAddon.auras[i++] = spellId; }