Skip to content

Instantly share code, notes, and snippets.

@Demonid
Created March 10, 2015 02:41
Show Gist options
  • Save Demonid/8464238ee99c31926b6e to your computer and use it in GitHub Desktop.
Save Demonid/8464238ee99c31926b6e to your computer and use it in GitHub Desktop.
diff --git a/src/server/game/Entities/Vehicle/Vehicle.cpp b/src/server/game/Entities/Vehicle/Vehicle.cpp
index 38be6db..b66b8fb 100644
--- a/src/server/game/Entities/Vehicle/Vehicle.cpp
+++ b/src/server/game/Entities/Vehicle/Vehicle.cpp
@@ -836,8 +836,11 @@ bool VehicleJoinEvent::Execute(uint64, uint32)
player->UnsummonPetTemporaryIfAny();
}
if (Seat->second.SeatInfo->m_flags & VEHICLE_SEAT_FLAG_PASSENGER_NOT_SELECTABLE)
Passenger->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
+
+ if (Passenger->GetVehicle()->GetVehicleInfo()->m_ID == 158 && !(Seat->second.SeatInfo->m_flags & VEHICLE_SEAT_FLAG_CAN_CONTROL))
+ Passenger->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
Passenger->AddUnitMovementFlag(MOVEMENTFLAG_ONTRANSPORT);
Passenger->ApplySpellImmune(0, IMMUNITY_MECHANIC, MECHANIC_GRIP, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment