calculates damage during battle correctly