Core/Spells: fixed a cherrypick typo in checking for affecting spellmods
This commit is contained in:
1 parent
836278cff3
commit
6510b2b034
1 file changed
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user