Myositis affects the voluntary muscles of the skeletal system.