mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Auras: skip target map update for one world tick if owner is not yet in world
Closes #21426
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user