From c7224deafe9cf69f0bcb066a713674086ffe2343 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 2 Jan 2022 12:26:12 -0500 Subject: [PATCH] Core/Misc: Kick a Totem error log upstairs one stack frame to give it access to various debug info Port From (https://github.com/TrinityCore/TrinityCore/commit/2b65dbbeabc3cde156d43e8e2657195e813821f1) --- Source/Game/Entities/Totem.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Game/Entities/Totem.cs b/Source/Game/Entities/Totem.cs index 731257117..a207c05c3 100644 --- a/Source/Game/Entities/Totem.cs +++ b/Source/Game/Entities/Totem.cs @@ -70,6 +70,8 @@ namespace Game.Entities uint totemDisplayId = Global.SpellMgr.GetModelForTotem(m_unitData.CreatedBySpell, owner.GetRace()); if (totemDisplayId != 0) SetDisplayId(totemDisplayId); + else + Log.outError(LogFilter.Misc, $"Totem with entry {GetEntry()}, does not have a specialized model for spell {m_unitData.CreatedBySpell} and race {owner.GetRace()}. Set to default."); } base.InitStats(duration);