Core/Spell: apply SPELLFAMILY_GENERIC mods to all spells by default

This commit is contained in:
hondacrx
2017-12-11 11:05:01 -05:00
parent 74950e0d66
commit 3760bfcdbb
3 changed files with 23 additions and 20 deletions
+4 -7
View File
@@ -587,15 +587,12 @@ namespace Game.Spells
{
if (spell == null)
return false;
// Check family name
if (spell.SpellFamilyName != m_spellInfo.SpellFamilyName)
// Check family name and EffectClassMask
if (!spell.IsAffected(m_spellInfo.SpellFamilyName, GetSpellEffectInfo().SpellClassMask))
return false;
// Check EffectClassMask
if (GetSpellEffectInfo().SpellClassMask & spell.SpellFamilyFlags)
return true;
return false;
return true;
}
void SendTickImmune(Unit target, Unit caster)