If a court finds that an adult inmate or prisoner has acted in a manner specified by the provisions of § 24-2-29.1 in a county or regional jail, the court shall order the inmate or prisoner plaintiff to pay the costs incurred by the person or the county in defending the cause of action, including reasonable attorney's fees.
SDCL 15-17-51.2