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
parent 42a11e97d5
commit a36be9ebdb

View File

@@ -555,6 +555,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;