Core/AreaTrigger: Handle unit exit after OnRemove hook has been called
Port From (https://github.com/TrinityCore/TrinityCore/commit/b10b97b35bed07742b3989fa99fe932d77bd7fd2)
This commit is contained in:
@@ -63,11 +63,11 @@ namespace Game.Entities
|
||||
if (caster)
|
||||
caster._UnregisterAreaTrigger(this);
|
||||
|
||||
_ai.OnRemove();
|
||||
|
||||
// Handle removal of all units, calling OnUnitExit & deleting auras if needed
|
||||
HandleUnitEnterExit(new List<Unit>());
|
||||
|
||||
_ai.OnRemove();
|
||||
|
||||
base.RemoveFromWorld();
|
||||
if (_spawnId != 0)
|
||||
GetMap().GetAreaTriggerBySpawnIdStore().Remove(_spawnId, this);
|
||||
|
||||
Reference in New Issue
Block a user