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)
This commit is contained in:
hondacrx
2022-01-02 12:26:12 -05:00
parent e7ab9031ac
commit c7224deafe
+2
View File
@@ -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);