Core/AI: Add a new LeavingWorld AI hook
Port From (https://github.com/TrinityCore/TrinityCore/commit/2642fb1a489e4b79a17bbb63127c8b3ce2823e1e)
This commit is contained in:
@@ -435,6 +435,9 @@ namespace Game.Entities
|
||||
if (IsInWorld)
|
||||
{
|
||||
m_duringRemoveFromWorld = true;
|
||||
if (IsAIEnabled)
|
||||
GetAI().LeavingWorld();
|
||||
|
||||
if (IsVehicle())
|
||||
RemoveVehicleKit(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user