If the Wisconsin State Agencies Building Corporation or the Wisconsin State Public Building Corporation is the defendant in an action or special proceeding in its capacity as owner of facilities occupied by any department or agents of any department of state government, the judgment as to damages and costs shall be paid by the state from the appropriation made under s. 20.865(1) (fm). The state, when it does not provide legal counsel to the defendant, its members, officers or employees, shall pay reasonable attorney fees and costs of defending the action regardless of the results of the litigation, unless the court or jury finds that the member, officer or employee did not act within the scope of that person's employment. Failure by the defendant to give notice to the department of justice of an action or special proceeding commenced against it, its members, officers or employees as soon as reasonably possible shall bar recovery by the defendant, its members, officers or employees from the state under this section. Attorney fees and expenses may not be recovered if the state offers the member, officer or employee legal counsel and the offer is refused.
Wis. Stat. § 895.47