Core/Vehicles: add a way to delay the Vehicle despawn Time if its needed.
Port From (https://github.com/TrinityCore/TrinityCore/commit/c7b10d3c5fd082faf6c2835239e340babc3dfc76)
This commit is contained in:
@@ -966,7 +966,7 @@ namespace Game.Entities
|
||||
|
||||
if (vehicle.GetBase().HasUnitTypeMask(UnitTypeMask.Minion) && vehicle.GetBase().IsTypeId(TypeId.Unit))
|
||||
if (((Minion)vehicle.GetBase()).GetOwner() == this)
|
||||
vehicle.GetBase().ToCreature().DespawnOrUnsummon();
|
||||
vehicle.GetBase().ToCreature().DespawnOrUnsummon(vehicle.GetDespawnDelay());
|
||||
|
||||
if (HasUnitTypeMask(UnitTypeMask.Accessory))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user