diff options
author | megamage <none@none> | 2009-04-13 17:36:37 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-13 17:36:37 -0500 |
commit | df35e1ad2b79c7d734ae4b1a32b6d6ad0d9b9400 (patch) | |
tree | 5a63e8da1949409c8ec4424a0bd965d2c876c374 /src/game/SpellHandler.cpp | |
parent | 3a2e58f81ad59365f91f265e382409f34f025b5e (diff) |
[7663] Cleanup spell interrupt code. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellHandler.cpp')
-rw-r--r-- | src/game/SpellHandler.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/game/SpellHandler.cpp b/src/game/SpellHandler.cpp index 0efc4cb0ee4..19a33dff75a 100644 --- a/src/game/SpellHandler.cpp +++ b/src/game/SpellHandler.cpp @@ -380,15 +380,11 @@ void WorldSession::HandleCancelAuraOpcode( WorldPacket& recvPacket) return; // channeled spell case (it currently casted then) - if(IsChanneledSpell(spellInfo)) + if (IsChanneledSpell(spellInfo)) { - if(Spell* spell = _player->m_currentSpells[CURRENT_CHANNELED_SPELL]) - { - if(spell->m_spellInfo->Id==spellId) - { - spell->cancel(); - } - } + if (_player->m_currentSpells[CURRENT_CHANNELED_SPELL] && + _player->m_currentSpells[CURRENT_CHANNELED_SPELL]->m_spellInfo->Id==spellId) + _player->InterruptSpell(CURRENT_CHANNELED_SPELL); return; } |