fix(Core/Spells): Adjust logic for removing/applying auras related to areas. (#20299)

* Init.

* Use apply instead of variable.
This commit is contained in:
Benjamin Jackson
2024-11-03 19:39:56 -05:00
committed by GitHub
parent 86da9ca041
commit 1bff305ad4

View File

@@ -1276,7 +1276,7 @@ void Aura::HandleAuraSpecificMods(AuraApplication const* aurApp, Unit* caster, b
for (SpellAreaForAreaMap::const_iterator itr = saBounds.first; itr != saBounds.second; ++itr)
{
// some auras remove at aura remove
if (!itr->second->IsFitToRequirements(target->ToPlayer(), zone, area))
if (!itr->second->IsFitToRequirements(target->ToPlayer(), zone, area) && !apply)
target->RemoveAurasDueToSpell(itr->second->spellId);
// some auras applied at aura apply
else if (itr->second->autocast)