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