aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellHandler.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-23 16:34:30 -0600
committermegamage <none@none>2009-03-23 16:34:30 -0600
commita8105dcff636226fbcc1c9c6ece3e8a5d65f0011 (patch)
treebb865464098bdfac413846a4e9d93fcae07f5b0a /src/game/SpellHandler.cpp
parente9fb303e362717b848b3cda10e69f44eb9791399 (diff)
*Do not proc anything when aura is removed by cancel.
*Remove aura by cancel when duel complete. This fix a crash. --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellHandler.cpp')
-rw-r--r--src/game/SpellHandler.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/game/SpellHandler.cpp b/src/game/SpellHandler.cpp
index 1629af5a802..b9e773437b6 100644
--- a/src/game/SpellHandler.cpp
+++ b/src/game/SpellHandler.cpp
@@ -325,28 +325,6 @@ void WorldSession::HandleCancelAuraOpcode( WorldPacket& recvPacket)
if(!IsPositiveSpell(spellId) || (spellInfo->Attributes & SPELL_ATTR_CANT_CANCEL))
return;
- // lifebloom must delete final heal effect
- if (spellInfo->SpellFamilyName == SPELLFAMILY_DRUID && (spellInfo->SpellFamilyFlags[1] & 0x10) )
- {
- Unit::AuraMap::iterator iter;
- while((iter = _player->m_Auras.find(Unit::spellEffectPair(spellId, 1))) != _player->m_Auras.end())
- {
- _player->m_modAuras[SPELL_AURA_DUMMY].remove(iter->second);
-
- Aura* Aur = iter->second;
- _player->m_Auras.erase(iter);
- ++_player->m_removedAuras; // internal count used by unit update
-
- delete Aur;
-
- if( _player->m_Auras.empty() )
- iter = _player->m_Auras.end();
- else
- iter = _player->m_Auras.begin();
-
- }
- }
-
// channeled spell case (it currently casted then)
if(IsChanneledSpell(spellInfo))
{