diff options
author | Shocker <shocker@freakz.ro> | 2011-11-26 22:37:02 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2024-09-09 16:02:37 +0200 |
commit | 4ea21dab05391fb6362c3e8332903beadf7f2a4e (patch) | |
tree | 5d954bf1656aac01d8766b6a38343934f5d1b8d8 | |
parent | b5ebf0281d471801b983b753f8f635271d4cffc6 (diff) |
Core/Spells: Allow SPELL_AURA_SET_VEHICLE_ID to be used on creatures too
(cherry picked from commit 8160e6e30392d946f29c6eccbcca1ff3bfadbdef)
-rw-r--r-- | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index a40e18f0131..119249b39a7 100644 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -4985,7 +4985,7 @@ void AuraEffect::HandleAuraSetVehicle(AuraApplication const* aurApp, uint8 mode, Unit* target = aurApp->GetTarget(); - if (target->GetTypeId() != TYPEID_PLAYER || !target->IsInWorld()) + if (!target->IsInWorld()) return; uint32 vehicleId = GetMiscValue(); @@ -4998,6 +4998,9 @@ void AuraEffect::HandleAuraSetVehicle(AuraApplication const* aurApp, uint8 mode, else if (target->GetVehicleKit()) target->RemoveVehicleKit(); + if (target->GetTypeId() != TYPEID_PLAYER) + return; + WorldPacket data(SMSG_PLAYER_VEHICLE_DATA, target->GetPackGUID().size()+4); data << target->GetPackGUID(); data << uint32(apply ? vehicleId : 0); |