Core/Vehicles: Do not call InstallAllAccessories for dead Vehicles
Port From (https://github.com/TrinityCore/TrinityCore/commit/111b65e10f94fc339247acc2b8b66af05d34aab4)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user