diff options
author | kaelima <kaelima@live.se> | 2012-11-02 00:17:59 +0100 |
---|---|---|
committer | kaelima <kaelima@live.se> | 2012-11-02 00:17:59 +0100 |
commit | b28499ac77b9321d39c5631a0408fd859882fd8b (patch) | |
tree | db3d4a709e32f39ee44294ee5537a9ced704d5a9 /src/server/game/Handlers/SpellHandler.cpp | |
parent | c97fc99e1683edc4a5b177119ba7a775cf7a19a1 (diff) |
Core/Protocol: Enabled a couple of (confirmed) opcodes.
Removed SMSG_SETUP_RESEARCH_HISTORY, as it is redundant to SMSG_RESEARCH_SETUP_HISTORY.
Diffstat (limited to 'src/server/game/Handlers/SpellHandler.cpp')
-rwxr-xr-x | src/server/game/Handlers/SpellHandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Handlers/SpellHandler.cpp b/src/server/game/Handlers/SpellHandler.cpp index 9bfc5ffa87e..33824fa0b49 100755 --- a/src/server/game/Handlers/SpellHandler.cpp +++ b/src/server/game/Handlers/SpellHandler.cpp @@ -552,8 +552,9 @@ void WorldSession::HandleTotemDestroyed(WorldPacket& recvPacket) return; uint8 slotId; - + uint64 guid; recvPacket >> slotId; + recvPacket >> guid; ++slotId; if (slotId >= MAX_TOTEM_SLOT) @@ -563,8 +564,7 @@ void WorldSession::HandleTotemDestroyed(WorldPacket& recvPacket) return; Creature* totem = GetPlayer()->GetMap()->GetCreature(_player->m_SummonSlot[slotId]); - - if (totem && totem->isTotem()) + if (totem && totem->isTotem() && totem->GetGUID() == guid) totem->ToTotem()->UnSummon(); } |