Skip to content

Commit 2a0e963

Browse files
authored
Core/Vehicles: Prevent players from eating and drinking while on vehicles (#31367)
Don't drink and drive
1 parent 70f1278 commit 2a0e963

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/server/game/Entities/Vehicle/Vehicle.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,9 @@ bool VehicleJoinEvent::Execute(uint64, uint32)
851851
player->SendOnCancelExpectedVehicleRideAura();
852852
if (!veSeat->HasFlag(VEHICLE_SEAT_FLAG_B_KEEP_PET))
853853
player->UnsummonPetTemporaryIfAny();
854+
855+
// This is not perfectly mirroring official behavior (aura removal is delayed, most likely on heartbeat)
856+
player->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_NOT_SEATED);
854857
}
855858

856859
if (veSeat->HasFlag(VEHICLE_SEAT_FLAG_PASSENGER_NOT_SELECTABLE))

0 commit comments

Comments
 (0)