Core/Spells: fixed a cherrypick typo in checking for affecting spellmods

This commit is contained in:
Ovahlord committed 2021-07-06 10:55:05 +02:00
1 parent 836278cff3
commit 6510b2b034
1 file changed
-1
-1
View File
@@ -1538,7 +1538,6 @@ bool SpellInfo::IsAffectedBySpellMod(SpellModifier const* mod) const
if (!affectSpell)
return false;
return IsAffected(affectSpell->SpellFamilyName, mod->mask);
// TEMP: dont use IsAffected - !familyName and !familyFlags are not valid options for spell mods
// TODO: investigate if the !familyName and !familyFlags conditions are even valid for all other (nonmod) uses of SpellInfo::IsAffected
return affectSpell->SpellFamilyName == SpellFamilyName && mod->mask & SpellFamilyFlags;