Options are priced according to the forward value of the unerlying at expiry. Forward value = spot + cost of carry - divs, and so the dividend is discounted in the option. Remember also that american style option cannot trade for less than intrinsic.