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