No players, only vehicles (todo: check if blizzlike)
NPC entries must match
NPC must be a valid vehicle installation
Entity needs to be in appropriate area
Vehicle must be in use by player
1587 {
1590 if (!creatureTarget)
1591 return true;
1592
1595 return true;
1596
1599 if (!vehicle)
1600 return true;
1601
1604 return true;
1605
1607 bool playerFound = false;
1608 for (SeatMap::const_iterator itr = vehicle->
Seats.begin(); itr != vehicle->
Seats.end() && !playerFound; ++itr)
1609 if (itr->second.Passenger.Guid.IsPlayer())
1610 playerFound = true;
1611
1612 return !playerFound;
1613 }
@ NPC_SALVAGED_SIEGE_ENGINE
Definition: ulduar.h:152
@ NPC_SALVAGED_DEMOLISHER
Definition: ulduar.h:155
Definition: Creature.h:46
uint32 GetEntry() const
Definition: Object.h:112
Creature * ToCreature()
Definition: Object.h:202
uint32 GetAreaId() const
Definition: Object.cpp:3152
Vehicle * GetVehicleKit() const
Definition: Unit.h:1672
SeatMap Seats
Definition: Vehicle.h:55
References WorldObject::GetAreaId(), Object::GetEntry(), Unit::GetVehicleKit(), NPC_SALVAGED_DEMOLISHER, NPC_SALVAGED_SIEGE_ENGINE, Vehicle::Seats, and Object::ToCreature().