diff options
| author | Rat <gmstreetrat@gmail.com> | 2012-01-21 22:25:01 +0100 |
|---|---|---|
| committer | Rat <gmstreetrat@gmail.com> | 2012-01-21 22:25:01 +0100 |
| commit | f006a2da68cf2df130a02e41eda4ab0e06d92170 (patch) | |
| tree | 18df8247100d566aad15070bdc2c1dba7041723a /src/server/game/Spells | |
| parent | 68ec9b02e39b8adca44e49cc928ab54ab7b64e8f (diff) | |
Core/Movement: updated UN/SET_FLY packets, .gm fly on/off now works, fly mounts are still broken, probably aura handling needs to be updated too
Diffstat (limited to 'src/server/game/Spells')
| -rwxr-xr-x | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 124e1628903..c54f644a43c 100755 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -2850,14 +2850,7 @@ void AuraEffect::HandleAuraAllowFlight(AuraApplication const* aurApp, uint8 mode if (Player* player = target->m_movedPlayer) { // allow flying - WorldPacket data; - if (apply) - data.Initialize(SMSG_MOVE_SPLINE_SET_FLYING, 12); - else - data.Initialize(SMSG_MOVE_SPLINE_UNSET_FLYING, 12); - data.append(target->GetPackGUID()); - data << uint32(0); // unk - player->SendDirectMessage(&data); + player->SendSetFlyPacket(apply); } } @@ -3247,16 +3240,7 @@ void AuraEffect::HandleAuraModIncreaseFlightSpeed(AuraApplication const* aurApp, if (mode & AURA_EFFECT_HANDLE_SEND_FOR_CLIENT_MASK && (apply || (!target->HasAuraType(SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED) && !target->HasAuraType(SPELL_AURA_FLY)))) { if (Player* player = target->m_movedPlayer) - { - WorldPacket data; - if (apply) - data.Initialize(SMSG_MOVE_SPLINE_SET_FLYING, 12); - else - data.Initialize(SMSG_MOVE_SPLINE_UNSET_FLYING, 12); - data.append(player->GetPackGUID()); - data << uint32(0); // unknown - player->SendDirectMessage(&data); - } + player->SendSetFlyPacket(apply); } if (mode & AURA_EFFECT_HANDLE_REAL) |
