Skip to content

Commit

Permalink
fix(Core/Spells): Adjust logic for removing/applying auras related to…
Browse files Browse the repository at this point in the history
… areas. (#20299)

* Init.

* Use apply instead of variable.
  • Loading branch information
heyitsbench authored Nov 4, 2024
1 parent 86da9ca commit 1bff305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Spells/Auras/SpellAuras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1bff305

Please sign in to comment.