Core/Auras: Corrected logic used to determine if a spellmod should affect another spell, empty family name or class mask should not apply to any spell
Port From (https://github.com/TrinityCore/TrinityCore/commit/3f479399695ce4aed7f508be46cfdccfd4353eee)
This commit is contained in:
@@ -668,7 +668,9 @@ namespace Game.Spells
|
||||
if (affectSpell == null)
|
||||
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;
|
||||
}
|
||||
|
||||
public bool CanPierceImmuneAura(SpellInfo auraSpellInfo)
|
||||
|
||||
Reference in New Issue
Block a user