Core/Spells: Fixed "unprocessed tail data" packet spam for CMSG_CAST_SPELL

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-12-22 21:32:48 +01:00
parent b1ded4bd98
commit cef7c4d4f3
@@ -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())