Add gamedef function to calculate damage in DS

This allows residual damage and converted healing to be excluded from
damage reduction while in Defensive Stance.