mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Vehicles: Prevent players from eating and drinking while on vehicles (#31367)
Don't drink and drive
This commit is contained in:
@@ -851,6 +851,9 @@ bool VehicleJoinEvent::Execute(uint64, uint32)
|
||||
player->SendOnCancelExpectedVehicleRideAura();
|
||||
if (!veSeat->HasFlag(VEHICLE_SEAT_FLAG_B_KEEP_PET))
|
||||
player->UnsummonPetTemporaryIfAny();
|
||||
|
||||
// This is not perfectly mirroring official behavior (aura removal is delayed, most likely on heartbeat)
|
||||
player->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_NOT_SEATED);
|
||||
}
|
||||
|
||||
if (veSeat->HasFlag(VEHICLE_SEAT_FLAG_PASSENGER_NOT_SELECTABLE))
|
||||
|
||||
Reference in New Issue
Block a user