aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <none@none>2010-12-22 21:32:48 +0100
committerShauren <none@none>2010-12-22 21:32:48 +0100
commitcef7c4d4f3e703bd0a0619c8030b7d1a9c0d3593 (patch)
tree06fc18231294a6e03a64ab623617c22e0a6409d7
parentb1ded4bd98a61666fed8367ae8a16bab732cc327 (diff)
Core/Spells: Fixed "unprocessed tail data" packet spam for CMSG_CAST_SPELL
--HG-- branch : trunk
-rwxr-xr-xsrc/server/game/Server/Protocol/Handlers/SpellHandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp b/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp
index c74c867c232..b84ee549fdc 100755
--- a/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp
+++ b/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp
@@ -375,7 +375,10 @@ void WorldSession::HandleCastSpellOpcode(WorldPacket& recvPacket)
// Skip it to prevent "interrupt" message
if (IsAutoRepeatRangedSpell(spellInfo) && _player->GetCurrentSpell(CURRENT_AUTOREPEAT_SPELL)
&& _player->GetCurrentSpell(CURRENT_AUTOREPEAT_SPELL)->m_spellInfo == spellInfo)
+ {
+ recvPacket.rfinish();
return;
+ }
// can't use our own spells when we're in possession of another unit,
if (_player->isPossessing())