From 4d982bfca4167812dfface4fd6b9b8fce69cf7ea Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 24 Mar 2009 16:46:54 -0600 Subject: *Allow to proc when aura is cancelled. --HG-- branch : trunk --- src/game/SpellAuras.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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); -- cgit v1.2.3