diff options
author | Machiavelli <machiavelli.trinity@gmail.com> | 2012-03-15 10:03:25 +0100 |
---|---|---|
committer | Machiavelli <machiavelli.trinity@gmail.com> | 2012-03-15 10:03:25 +0100 |
commit | afaed98b7adcd1cbd72224439afaf08e7ba56efa (patch) | |
tree | 13b71f7a0c2894f8fcab8bde24e22ab25a63f073 | |
parent | 77f165ba27c7929d1e58ab171afe5a1795a42d89 (diff) |
Core/Movement: Send correct packet to client when unapplying hover, feather fall and water walking auras.
Closes #5704
-rwxr-xr-x | src/server/game/Spells/Auras/SpellAuraEffects.cpp | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 387f76bbc7f..ddef7fdd749 100755 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -2876,15 +2876,12 @@ void AuraEffect::HandleAuraWaterWalk(AuraApplication const* aurApp, uint8 mode, } if (apply) - { target->AddUnitMovementFlag(MOVEMENTFLAG_WATERWALKING); - target->SendMovementWaterWalking(); - } - else - { + else target->RemoveUnitMovementFlag(MOVEMENTFLAG_WATERWALKING); - target->SendMovementFlagUpdate(); - } + + target->SendMovementWaterWalking(); + } void AuraEffect::HandleAuraFeatherFall(AuraApplication const* aurApp, uint8 mode, bool apply) const @@ -2902,15 +2899,11 @@ void AuraEffect::HandleAuraFeatherFall(AuraApplication const* aurApp, uint8 mode } if (apply) - { target->AddUnitMovementFlag(MOVEMENTFLAG_FALLING_SLOW); - target->SendMovementFeatherFall(); - } else - { target->RemoveUnitMovementFlag(MOVEMENTFLAG_FALLING_SLOW); - target->SendMovementFlagUpdate(); - } + + target->SendMovementFeatherFall(); // start fall from current height if (!apply && target->GetTypeId() == TYPEID_PLAYER) @@ -2932,10 +2925,7 @@ void AuraEffect::HandleAuraHover(AuraApplication const* aurApp, uint8 mode, bool } target->SetHover(apply); //! Sets movementflags - if (apply) - target->SendMovementHover(); - else - target->SendMovementFlagUpdate(); + target->SendMovementHover(); } void AuraEffect::HandleWaterBreathing(AuraApplication const* aurApp, uint8 mode, bool /*apply*/) const |