[10211] Fix aura procs for spells with auras that can't trigger

This commit is contained in:
Laise 2010-07-17 21:31:11 +03:00
parent 63ea8bbf4b
commit f37c73e255
4 changed files with 309 additions and 295 deletions

View file

@ -9526,8 +9526,15 @@ void Unit::ProcDamageAndSpellFor( bool isVictim, Unit * pTarget, uint32 procFlag
continue;
}
if (!(*this.*AuraProcHandler[auraModifier->m_auraname])(pTarget, damage, triggeredByAura, procSpell, procFlag, procExtra, cooldown))
procSuccess = false;
SpellAuraProcResult procResult = (*this.*AuraProcHandler[auraModifier->m_auraname])(pTarget, damage, triggeredByAura, procSpell, procFlag, procExtra, cooldown);
switch (procResult)
{
case SPELL_AURA_PROC_CANT_TRIGGER:
continue;
case SPELL_AURA_PROC_FAILED:
procSuccess = false;
break;
}
anyAuraProc = true;
triggeredByAura->SetInUse(false);