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

This commit is contained in:
ariel-
2022-07-05 21:50:54 +02:00
committed by Ovahlord
parent 9f9f3fa24f
commit e23f4e38cf

View File

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