added attack duration argument to character controller.