Core/Spell: apply SPELLFAMILY_GENERIC mods to all spells by default
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user