mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[10211] Fix aura procs for spells with auras that can't trigger
This commit is contained in:
parent
63ea8bbf4b
commit
f37c73e255
4 changed files with 309 additions and 295 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue