mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/Vehicles: Treat entering other vehicles mounted on main vehicle as swapping seats
This commit is contained in:
@@ -3023,7 +3023,10 @@ void AuraEffect::HandleAuraControlVehicle(AuraApplication const* aurApp, uint8 m
|
||||
caster->ToCreature()->DespawnOrUnsummon();
|
||||
}
|
||||
|
||||
if (!(mode & AURA_EFFECT_HANDLE_CHANGE_AMOUNT))
|
||||
bool seatChange = (mode & AURA_EFFECT_HANDLE_CHANGE_AMOUNT) // Seat change on the same direct vehicle
|
||||
|| target->HasAuraType(SPELL_AURA_CONTROL_VEHICLE); // Seat change to a proxy vehicle (for example turret mounted on a siege engine)
|
||||
|
||||
if (!seatChange)
|
||||
caster->_ExitVehicle();
|
||||
else
|
||||
target->GetVehicleKit()->RemovePassenger(caster); // Only remove passenger from vehicle without launching exit movement or despawning the vehicle
|
||||
|
||||
Reference in New Issue
Block a user