Changed attack bonus code to handle the bonus for the number of  attacks