Core/Vehicles: Do not call InstallAllAccessories for dead Vehicles

Port From (https://github.com/TrinityCore/TrinityCore/commit/111b65e10f94fc339247acc2b8b66af05d34aab4)
This commit is contained in:
hondacrx
2020-08-22 14:58:10 -04:00
parent 74cbb0fdf4
commit 9314d5a9bc
+2 -1
View File
@@ -124,7 +124,8 @@ namespace Game.Entities
Log.outDebug(LogFilter.Vehicle, "Vehicle.Reset (Entry: {0}, GuidLow: {1}, DBGuid: {2})", GetCreatureEntry(), _me.GetGUID().ToString(), _me.ToCreature().GetSpawnId());
ApplyAllImmunities();
InstallAllAccessories(evading);
if (GetBase().IsAlive())
InstallAllAccessories(evading);
Global.ScriptMgr.OnReset(this);
}