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

This commit is contained in:
ariel- authored and Ovahlord committed 2022-09-12 09:15:11 +02:00
1 parent 9f9f3fa24f
commit e23f4e38cf
1 file changed
+4
@@ -565,6 +565,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;