Skip to content

Commit

Permalink
Core/Vehicles: Add missing caster guid check
Browse files Browse the repository at this point in the history
Merges #25772
  • Loading branch information
gonzo1247 authored and Shauren committed Dec 28, 2020
1 parent 110564e commit e26122d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Spells/Auras/SpellAuraEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3024,7 +3024,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();
Expand Down

0 comments on commit e26122d

Please sign in to comment.