mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Script/Vehicles): The next player entering Salvaged Siege Engine … (#19674)
fix(Script/Vehicles): The next player entering Salvaged Siege Engine should control turret if it's not occupied.
This commit is contained in:
@@ -546,7 +546,7 @@ struct npc_salvaged_siege_engine : public VehicleAI
|
||||
{
|
||||
if (Unit* turret = vehicle->GetPassenger(7))
|
||||
{
|
||||
if (Vehicle* turretVehicle = me->GetVehicleKit())
|
||||
if (Vehicle* turretVehicle = turret->GetVehicleKit())
|
||||
{
|
||||
if (!turretVehicle->IsVehicleInUse())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user