Core/Vehicles: Add missing caster guid check

Merges #25773

(cherry picked from commit e26122dc54b5c5a356a97a842718168dab97a0aa)
This commit is contained in:
Sevi authored and Ovahlord committed 2020-12-28 17:42:00 +01:00
1 parent ef70533e55
commit 89ed3f8091
1 file changed
+1 -1
@@ -3084,7 +3084,7 @@ void AuraEffect::HandleAuraControlVehicle(AuraApplication const* aurApp, uint8 m
}
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)
|| target->HasAuraTypeWithCaster(SPELL_AURA_CONTROL_VEHICLE, caster->GetGUID()); // Seat change to a proxy vehicle (for example turret mounted on a siege engine)
if (!seatChange)
caster->_ExitVehicle();