diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Entities/Totem/Totem.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/server/game/Entities/Totem/Totem.cpp b/src/server/game/Entities/Totem/Totem.cpp index 86c15eeb243..f7011a973f7 100755 --- a/src/server/game/Entities/Totem/Totem.cpp +++ b/src/server/game/Entities/Totem/Totem.cpp @@ -63,14 +63,13 @@ void Totem::InitStats(uint32 duration) data << uint32(duration); data << uint32(GetUInt32Value(UNIT_CREATED_BY_SPELL)); m_owner->ToPlayer()->SendDirectMessage(&data); + + // set display id depending on caster's race + SetDisplayId(m_owner->GetModelForTotem(PlayerTotemType(m_Properties->Id))); } Minion::InitStats(duration); - // set display id depending on caster's race - if (m_owner->GetTypeId() == TYPEID_PLAYER) - SetDisplayId(m_owner->GetModelForTotem(PlayerTotemType(m_Properties->Id))); - // Get spell cast by totem if (SpellEntry const* totemSpell = sSpellStore.LookupEntry(GetSpell())) if (GetSpellCastTime(totemSpell)) // If spell has cast time -> its an active totem |