Core/Movement: Send correct packet to client when unapplying hover, feather fall and water walking auras.

Closes #5704
This commit is contained in:
Machiavelli
2012-03-15 10:03:25 +01:00
parent 77f165ba27
commit afaed98b7a

View File

@@ -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