Skip to content

Commit

Permalink
[11627] Restore spelmods apply after ClassFamilyMask commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirMangos committed Jun 12, 2011
1 parent a8dd4b4 commit 56299d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/game/Player.cpp
Expand Up @@ -286,9 +286,9 @@ bool SpellModifier::isAffectedOnSpell( SpellEntry const *spell ) const
{
SpellEntry const *affect_spell = sSpellStore.LookupEntry(spellId);
// False if affect_spell == NULL or spellFamily not equal
if (!affect_spell)
if (!affect_spell || affect_spell->SpellFamilyName != spell->SpellFamilyName)
return false;
return affect_spell->IsFitToFamily(SpellFamily(spell->SpellFamilyName), spell->SpellFamilyFlags);
return spell->IsFitToFamilyMask(mask);
}

//== TradeData =================================================
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11626"
#define REVISION_NR "11627"
#endif // __REVISION_NR_H__

1 comment on commit 56299d1

@wolfiestyle
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, i thought was my fault and was going crazy

Please sign in to comment.