Core/Movement: Send correct packet to client when unapplying hover, feather fall and water walking auras.
Closes #5704
This commit is contained in:
@@ -2876,15 +2876,12 @@ void AuraEffect::HandleAuraWaterWalk(AuraApplication const* aurApp, uint8 mode,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (apply)
|
if (apply)
|
||||||
{
|
|
||||||
target->AddUnitMovementFlag(MOVEMENTFLAG_WATERWALKING);
|
target->AddUnitMovementFlag(MOVEMENTFLAG_WATERWALKING);
|
||||||
target->SendMovementWaterWalking();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
target->RemoveUnitMovementFlag(MOVEMENTFLAG_WATERWALKING);
|
target->RemoveUnitMovementFlag(MOVEMENTFLAG_WATERWALKING);
|
||||||
target->SendMovementFlagUpdate();
|
|
||||||
}
|
target->SendMovementWaterWalking();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AuraEffect::HandleAuraFeatherFall(AuraApplication const* aurApp, uint8 mode, bool apply) const
|
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)
|
if (apply)
|
||||||
{
|
|
||||||
target->AddUnitMovementFlag(MOVEMENTFLAG_FALLING_SLOW);
|
target->AddUnitMovementFlag(MOVEMENTFLAG_FALLING_SLOW);
|
||||||
target->SendMovementFeatherFall();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
|
||||||
target->RemoveUnitMovementFlag(MOVEMENTFLAG_FALLING_SLOW);
|
target->RemoveUnitMovementFlag(MOVEMENTFLAG_FALLING_SLOW);
|
||||||
target->SendMovementFlagUpdate();
|
|
||||||
}
|
target->SendMovementFeatherFall();
|
||||||
|
|
||||||
// start fall from current height
|
// start fall from current height
|
||||||
if (!apply && target->GetTypeId() == TYPEID_PLAYER)
|
if (!apply && target->GetTypeId() == TYPEID_PLAYER)
|
||||||
@@ -2932,10 +2925,7 @@ void AuraEffect::HandleAuraHover(AuraApplication const* aurApp, uint8 mode, bool
|
|||||||
}
|
}
|
||||||
|
|
||||||
target->SetHover(apply); //! Sets movementflags
|
target->SetHover(apply); //! Sets movementflags
|
||||||
if (apply)
|
|
||||||
target->SendMovementHover();
|
target->SendMovementHover();
|
||||||
else
|
|
||||||
target->SendMovementFlagUpdate();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AuraEffect::HandleWaterBreathing(AuraApplication const* aurApp, uint8 mode, bool /*apply*/) const
|
void AuraEffect::HandleWaterBreathing(AuraApplication const* aurApp, uint8 mode, bool /*apply*/) const
|
||||||
|
|||||||
Reference in New Issue
Block a user