Core/Vehicles: Fix accessories disappearing on reset
Port From (https://github.com/TrinityCore/TrinityCore/commit/a855e6221d517297cfb9e2e78b57a6a57fccc85a)
This commit is contained in:
@@ -175,9 +175,6 @@ namespace Game.AI
|
|||||||
}
|
}
|
||||||
|
|
||||||
Reset();
|
Reset();
|
||||||
|
|
||||||
if (me.IsVehicle()) // use the same sequence of addtoworld, aireset may remove all summons!
|
|
||||||
me.GetVehicleKit().Reset(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool UpdateVictim()
|
public bool UpdateVictim()
|
||||||
|
|||||||
@@ -75,6 +75,8 @@ namespace Game.AI
|
|||||||
owner.SetWalk(true);
|
owner.SetWalk(true);
|
||||||
owner.SetSpawnHealth();
|
owner.SetSpawnHealth();
|
||||||
owner.LoadCreaturesAddon();
|
owner.LoadCreaturesAddon();
|
||||||
|
if (owner.IsVehicle())
|
||||||
|
owner.GetVehicleKit().Reset(true);
|
||||||
owner.GetAI().JustReachedHome();
|
owner.GetAI().JustReachedHome();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user