Core/Vehicles: Fix accessories disappearing on reset

Port From (https://github.com/TrinityCore/TrinityCore/commit/a855e6221d517297cfb9e2e78b57a6a57fccc85a)
This commit is contained in:
hondacrx
2021-12-07 14:19:43 -05:00
parent 754ac90d50
commit 4fb48f1522
2 changed files with 2 additions and 3 deletions
-3
View File
@@ -175,9 +175,6 @@ namespace Game.AI
}
Reset();
if (me.IsVehicle()) // use the same sequence of addtoworld, aireset may remove all summons!
me.GetVehicleKit().Reset(true);
}
public bool UpdateVictim()
@@ -75,6 +75,8 @@ namespace Game.AI
owner.SetWalk(true);
owner.SetSpawnHealth();
owner.LoadCreaturesAddon();
if (owner.IsVehicle())
owner.GetVehicleKit().Reset(true);
owner.GetAI().JustReachedHome();
}
}