mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-08 05:11:09 +00:00
refactor(Core): DespawnOrUnsummon (#23141)
This commit is contained in:
@@ -19681,7 +19681,7 @@ void Unit::_ExitVehicle(Position const* exitPosition)
|
||||
else if (vehicleBase->IsCreature())
|
||||
{
|
||||
vehicle->Uninstall();
|
||||
vehicleBase->m_Events.AddEvent(new VehicleDespawnEvent(*vehicleBase, 2000), vehicleBase->m_Events.CalculateTime(2000));
|
||||
vehicleBase->m_Events.AddEventAtOffset(new VehicleDespawnEvent(*vehicleBase, 2s), 2s);
|
||||
}
|
||||
|
||||
// xinef: ugly hack, no appripriate hook later to cast spell
|
||||
|
||||
Reference in New Issue
Block a user