Core/Vehicles: add a way to delay the Vehicle despawn Time if its needed.

* New database table `vehicle_template` holds info for despawn delay with option to extend it in the future
This commit is contained in:
Sevi
2020-12-28 16:27:44 +01:00
committed by Shauren
parent d94f0d23b3
commit c7b10d3c5f
8 changed files with 72 additions and 1 deletions
+1 -1
View File
@@ -12956,7 +12956,7 @@ void Unit::_ExitVehicle(Position const* exitPosition)
if (vehicle->GetBase()->HasUnitTypeMask(UNIT_MASK_MINION) && vehicle->GetBase()->GetTypeId() == TYPEID_UNIT)
if (((Minion*)vehicle->GetBase())->GetOwner() == this)
vehicle->GetBase()->ToCreature()->DespawnOrUnsummon(1);
vehicle->GetBase()->ToCreature()->DespawnOrUnsummon(vehicle->GetDespawnDelay());
if (HasUnitTypeMask(UNIT_MASK_ACCESSORY))
{