diff options
author | Rat <none@none> | 2010-04-06 23:52:08 +0200 |
---|---|---|
committer | Rat <none@none> | 2010-04-06 23:52:08 +0200 |
commit | c39f8bf7c73684e05777e2ba2e301c4e4e05a2dc (patch) | |
tree | 7fece01afd99010c874c1e593f1561db6ab70394 /src | |
parent | f871e12fa4930af3b66c88996189e52e1ae2b23f (diff) |
*fix bug "cant cast or logout till you move a bit if someone dismounted near you from a flying mount"
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellAuraEffects.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/game/SpellAuraEffects.cpp b/src/game/SpellAuraEffects.cpp index 3adfe15d746..b5940a94889 100644 --- a/src/game/SpellAuraEffects.cpp +++ b/src/game/SpellAuraEffects.cpp @@ -3976,14 +3976,17 @@ void AuraEffect::HandleAuraModIncreaseFlightSpeed(AuraApplication const * aurApp // do not remove unit flag if there are more than this auraEffect of that kind on unit on unit if (mode & AURA_EFFECT_HANDLE_SEND_FOR_CLIENT_MASK && (apply || (!target->HasAuraType(SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED) && !target->HasAuraType(SPELL_AURA_FLY)))) { - WorldPacket data; - if(apply) - data.Initialize(SMSG_MOVE_SET_CAN_FLY, 12); - else - data.Initialize(SMSG_MOVE_UNSET_CAN_FLY, 12); - data.append(target->GetPackGUID()); - data << uint32(0); // unknown - target->SendMessageToSet(&data, true); + if(Player *plr = target->m_movedPlayer) + { + WorldPacket data; + if(apply) + data.Initialize(SMSG_MOVE_SET_CAN_FLY, 12); + else + data.Initialize(SMSG_MOVE_UNSET_CAN_FLY, 12); + data.append(plr->GetPackGUID()); + data << uint32(0); // unknown + plr->SendDirectMessage(&data); + } } if (mode & AURA_EFFECT_HANDLE_REAL) |