Core/Spells: Fixed Anti-Magic Zone visual

This commit is contained in:
Shauren
2011-05-23 12:35:23 +02:00
parent 5cab20c80a
commit f7ce41c4af

View File

@@ -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