mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 16:43:47 +00:00
fix(Core/Spells): Adjust logic for removing/applying auras related to areas. (#20299)
* Init. * Use apply instead of variable.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user