diff options
author | megamage <none@none> | 2009-03-24 16:46:54 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-24 16:46:54 -0600 |
commit | 4d982bfca4167812dfface4fd6b9b8fce69cf7ea (patch) | |
tree | d6df4f2753c75288cedd9c79a58678e4685ca70c | |
parent | c5969d6d03b661668a9893b0cca9f6df98f7ad4b (diff) |
*Allow to proc when aura is cancelled.
--HG--
branch : trunk
-rw-r--r-- | src/game/SpellAuras.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index c6b24074e12..e0677d99f9a 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -1022,9 +1022,10 @@ void Aura::_RemoveAura() ((Player*)caster)->SendCooldownEvent(GetSpellProto()); } + // overkill // do not proc anything if aura is cancelled - if(m_removeMode == AURA_REMOVE_BY_CANCEL) - return; + //if(m_removeMode == AURA_REMOVE_BY_CANCEL) + // return; // Remove Linked Auras (on last aura remove) uint32 id = GetId(); @@ -1063,7 +1064,7 @@ void Aura::_RemoveAura() uint32 procEx=0; if (m_removeMode == AURA_REMOVE_BY_ENEMY_SPELL) procEx = PROC_EX_AURA_REMOVE_DESTROY; - else if (m_removeMode == AURA_REMOVE_BY_DEFAULT)// || m_removeMode == AURA_REMOVE_BY_CANCEL) + else if (m_removeMode == AURA_REMOVE_BY_DEFAULT || m_removeMode == AURA_REMOVE_BY_CANCEL) procEx = PROC_EX_AURA_REMOVE_EXPIRE; caster->ProcDamageAndSpell(m_target,ProcCaster, ProcVictim, procEx, m_modifier.m_amount, BASE_ATTACK, m_spellProto); |