From 56299d17c278e69e2e02a5e026579ebf27bc2884 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Sun, 12 Jun 2011 21:08:27 +0400 Subject: [PATCH] [11627] Restore spelmods apply after ClassFamilyMask commit. --- src/game/Player.cpp | 4 ++-- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index e182e0638fc..e81f1a0e28b 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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 ================================================= diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 4afee9a57d3..dd85f0dcac3 100644 --- a/src/shared/revision_nr.h +++ b/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__