and thereafter commences an action governed by this chapter, the court may deny the claimant attorney's fees and costs and award attorney's fees and costs to the construction professional. However, a homeowner is not required to accept an offer to repair the defect when the defect is caused by the construction professional's noncompliance with applicable building codes.
IC 32-27-3-9