Core/Auras: Do not remove auras unaffected by invincibility

* Mark WSG's Focused Assault and Brutal Assault as unaffected by immunities
This commit is contained in:
Alan Deutscher authored and Ovahlord committed 2022-09-30 11:33:04 +02:00
1 parent f35e49b515
commit 0f4442c630
2 files changed
+6 -1

No files matched your search

+1
View File
@@ -7371,6 +7371,7 @@ bool Unit::IsImmunedToSpell(SpellInfo const* spellInfo, WorldObject const* caste
continue;
SpellInfo const* immuneSpellInfo = sSpellMgr->GetSpellInfo(itr->second);
// Consider the school immune if any of these conditions are not satisfied.
// In case of no immuneSpellInfo, ignore that condition and check only the other conditions
if ((immuneSpellInfo && !immuneSpellInfo->IsPositive()) || !spellInfo->IsPositive() || !caster || !IsFriendlyTo(caster))