mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[11627] Restore spelmods apply after ClassFamilyMask commit.
This commit is contained in:
parent
38a6d24809
commit
6190894330
2 changed files with 3 additions and 3 deletions
|
|
@ -286,9 +286,9 @@ bool SpellModifier::isAffectedOnSpell( SpellEntry const *spell ) const
|
||||||
{
|
{
|
||||||
SpellEntry const *affect_spell = sSpellStore.LookupEntry(spellId);
|
SpellEntry const *affect_spell = sSpellStore.LookupEntry(spellId);
|
||||||
// False if affect_spell == NULL or spellFamily not equal
|
// False if affect_spell == NULL or spellFamily not equal
|
||||||
if (!affect_spell)
|
if (!affect_spell || affect_spell->SpellFamilyName != spell->SpellFamilyName)
|
||||||
return false;
|
return false;
|
||||||
return affect_spell->IsFitToFamily(SpellFamily(spell->SpellFamilyName), spell->SpellFamilyFlags);
|
return spell->IsFitToFamilyMask(mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
//== TradeData =================================================
|
//== TradeData =================================================
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11626"
|
#define REVISION_NR "11627"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue