fix(Core/Movement): Unroot should remove MOVEMENTFLAG_FALLING if not really falling (#9428)

- Closes #9187
This commit is contained in:
UltraNix
2021-12-06 20:56:40 +01:00
committed by GitHub
parent 9391189901
commit 90451c1d3f

View File

@@ -997,6 +997,11 @@ void WorldSession::HandleMoveUnRootAck(WorldPacket& recvData)
movementInfo.time = (uint32)movementTime;
}
if (G3D::fuzzyEq(movementInfo.fallTime, 0.f))
{
movementInfo.RemoveMovementFlag(MOVEMENTFLAG_FALLING);
}
movementInfo.guid = mover->GetGUID();
mover->m_movementInfo = movementInfo;
mover->UpdatePosition(movementInfo.pos);