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 7cff1b540c)
This commit is contained in:
ariel-
2018-02-22 01:35:01 -03:00
committed by funjoker
parent b1a76fc756
commit 8e7a12a87a
2 changed files with 4 additions and 1 deletions

View File

@@ -1576,7 +1576,6 @@ void AuraEffect::HandleAuraGhost(AuraApplication const* aurApp, uint8 mode, bool
return;
Player* target = aurApp->GetTarget()->ToPlayer();
if (!target)
return;

View File

@@ -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))