Core/Auras: restrict target map update only to area auras as player requires to have auras registered on load

Closes #21472

(cherry picked from commit 7cff1b540c96d9e2cf82b244cc0d1618bf5b090f)
This commit is contained in:
ariel-
2021-08-08 21:21:34 +02:00
committed by funjoker
parent b1a76fc756
commit 8e7a12a87a
2 changed files with 4 additions and 1 deletions
@@ -1576,7 +1576,6 @@ void AuraEffect::HandleAuraGhost(AuraApplication const* aurApp, uint8 mode, bool
return;
Player* target = aurApp->GetTarget()->ToPlayer();
if (!target)
return;
@@ -2283,6 +2283,10 @@ void UnitAura::FillTargetMap(std::unordered_map<Unit*, uint32>& targets, Unit* c
}
else
{
// skip area update if owner is not in world!
if (!GetUnitOwner()->IsInWorld())
continue;
float radius = effect->CalcRadius(caster);
if (!GetUnitOwner()->HasUnitState(UNIT_STATE_ISOLATED))