Core/Vehicles: Add missing caster guid check

Port From (https://github.com/TrinityCore/TrinityCore/commit/e26122dc54b5c5a356a97a842718168dab97a0aa)
This commit is contained in:
hondacrx
2020-12-31 21:02:43 -05:00
parent 768eec33e5
commit fe1e839708
+1 -1
View File
@@ -2652,7 +2652,7 @@ namespace Game.Spells
}
bool seatChange = mode.HasAnyFlag(AuraEffectHandleModes.ChangeAmount) // Seat change on the same direct vehicle
|| target.HasAuraType(AuraType.ControlVehicle); // Seat change to a proxy vehicle (for example turret mounted on a siege engine)
|| target.HasAuraTypeWithCaster(AuraType.ControlVehicle, caster.GetGUID()); // Seat change to a proxy vehicle (for example turret mounted on a siege engine)
if (!seatChange)
caster._ExitVehicle();