[8383] Implement WorldSession::HandleCancelChanneling.

This commit is contained in:
VladimirMangos 2009-08-18 04:12:31 +04:00
parent 2b534cbc23
commit 55a56ad71e
2 changed files with 10 additions and 7 deletions

View file

@ -467,13 +467,16 @@ void WorldSession::HandleCancelAutoRepeatSpellOpcode( WorldPacket& /*recvPacket*
_player->m_mover->InterruptSpell(CURRENT_AUTOREPEAT_SPELL);
}
/// \todo Complete HandleCancelChanneling function
void WorldSession::HandleCancelChanneling( WorldPacket & /*recv_data */)
void WorldSession::HandleCancelChanneling( WorldPacket & recv_data)
{
/*
uint32 spellid;
recv_data >> spellid;
*/
recv_data.read_skip<uint32>(); // spellid, not used
// ignore for remote control state (for player case)
Unit* mover = _player->m_mover;
if(mover != _player && mover->GetTypeId()==TYPEID_PLAYER)
return;
mover->InterruptSpell(CURRENT_CHANNELED_SPELL);
}
void WorldSession::HandleTotemDestroyed( WorldPacket& recvPacket)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8382"
#define REVISION_NR "8383"
#endif // __REVISION_NR_H__