It depends. If, in the judgment of the umpire the batter made no
attempt to avoid getting hit, the batter is awarded first for a
base on balls. If the umpire rules he did try to get out of the
way, he's awarded first because of a hit batsman.

Ryan Robbins
Penobscot Hall
University of Maine