aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2011-05-23 12:35:23 +0200
committerShauren <shauren.trinity@gmail.com>2011-05-23 12:35:23 +0200
commitf7ce41c4afe1ea4d7cf65fbd08895e2e8325f66c (patch)
tree40559977bbbba1a2711805d3689adce285df517f /src
parent5cab20c80ac2718221bfb5e5c3b7f81ed0de6ed8 (diff)
Core/Spells: Fixed Anti-Magic Zone visual
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Entities/Totem/Totem.cpp7
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