[10240] Fix some spells proc from spells that don't deal damage/heal

This commit is contained in:
Laise 2010-07-21 08:14:58 +03:00
parent 4f0f701b63
commit 3e326311ad
4 changed files with 25 additions and 5 deletions

View file

@ -9519,10 +9519,10 @@ void Unit::ProcDamageAndSpellFor( bool isVictim, Unit * pTarget, uint32 procFlag
(spellProcEvent->spellFamilyMask2[i] & procSpell->SpellFamilyFlags2) == 0)
continue;
}
else if (!spellProcEvent->schoolMask && !triggeredByAura->CanProcFrom(procSpell))
else if (!triggeredByAura->CanProcFrom(procSpell, spellProcEvent->procEx, procExtra, damage != 0))
continue;
}
else if (!triggeredByAura->CanProcFrom(procSpell))
else if (!triggeredByAura->CanProcFrom(procSpell, PROC_EX_NONE, procExtra, damage != 0))
continue;
}