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:
@@ -70,6 +70,8 @@ namespace Game.Entities
|
|||||||
uint totemDisplayId = Global.SpellMgr.GetModelForTotem(m_unitData.CreatedBySpell, owner.GetRace());
|
uint totemDisplayId = Global.SpellMgr.GetModelForTotem(m_unitData.CreatedBySpell, owner.GetRace());
|
||||||
if (totemDisplayId != 0)
|
if (totemDisplayId != 0)
|
||||||
SetDisplayId(totemDisplayId);
|
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);
|
base.InitStats(duration);
|
||||||
|
|||||||
Reference in New Issue
Block a user