Update Spell code for 322a. Part 1

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2009-12-17 12:18:10 +01:00
parent ac71d40517
commit 515cf192ef
5 changed files with 134 additions and 74 deletions
+1 -6
View File
@@ -99,10 +99,6 @@ void Totem::InitStats(uint32 duration)
void Totem::InitSummon()
{
WorldPacket data(SMSG_GAMEOBJECT_SPAWN_ANIM_OBSOLETE, 8);
data << GetGUID();
SendMessageToSet(&data, true);
if(m_type == TOTEM_PASSIVE)
CastSpell(this, GetSpell(), true);
@@ -113,8 +109,6 @@ void Totem::InitSummon()
void Totem::UnSummon()
{
SendObjectDeSpawnAnim(GetGUID());
CombatStop();
RemoveAurasDueToSpell(GetSpell());
@@ -134,6 +128,7 @@ void Totem::UnSummon()
Group *pGroup = NULL;
if (m_owner->GetTypeId() == TYPEID_PLAYER)
{
((Player*)m_owner)->SendAutoRepeatCancel(this);
// Not only the player can summon the totem (scripted AI)
pGroup = ((Player*)m_owner)->GetGroup();
if (pGroup)