Core/Auras: skip target map update for one world tick if owner is not yet in world

Closes #21426
This commit is contained in:
ariel-
2018-02-15 13:53:41 -03:00
committed by Aokromes
parent 1f7391a6b1
commit 25675405b2

View File

@@ -496,6 +496,10 @@ void Aura::UpdateTargetMap(Unit* caster, bool apply)
m_updateTargetMapInterval = UPDATE_TARGET_MAP_INTERVAL;
// skip update if owner is not in world!
if (!GetOwner()->IsInWorld())
return;
// fill up to date target list
// target, effMask
std::unordered_map<Unit*, uint8> targets;