A legal battle is brewing in York County between two unlikely parties: the county attorney and the Board of Commissioners.