[10268] If schoolMask present for proc, ignore SpellFamilyFlags check

This commit is contained in:
Laise 2010-07-25 07:30:47 +03:00
parent 51297e87ae
commit 0faa1185ae
2 changed files with 3 additions and 2 deletions

View file

@ -9521,7 +9521,8 @@ void Unit::ProcDamageAndSpellFor( bool isVictim, Unit * pTarget, uint32 procFlag
(spellProcEvent->spellFamilyMask2[i] & procSpell->SpellFamilyFlags2) == 0)
continue;
}
else if (!triggeredByAura->CanProcFrom(procSpell, spellProcEvent->procEx, procExtra, damage != 0))
// don't check FamilyFlags if schoolMask exists
else if (!spellProcEvent->schoolMask && !triggeredByAura->CanProcFrom(procSpell, spellProcEvent->procEx, procExtra, damage != 0))
continue;
}
else if (!triggeredByAura->CanProcFrom(procSpell, PROC_EX_NONE, procExtra, damage != 0))

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10267"
#define REVISION_NR "10268"
#endif // __REVISION_NR_H__