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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user