(1) If a governmental agency responsible for the enforcement of a building, housing, or other appropriate code has notified the landlord that a dwelling is condemned or unlawful to occupy due to the existence of conditions that violate applicable codes, statutes, ordinances, or regulations, a landlord shall not enter into a rental agreement for the dwelling unit until the conditions are corrected.
(2) If a landlord knowingly violates subsection (1) of this section, the tenant shall recover either three months' periodic rent or up to treble the actual damages sustained as a result of the violation, whichever is greater, costs of suit, or arbitration and reasonable attorneys' fees. If the tenant elects to terminate the tenancy as a result of the conditions leading to the posting, or if the appropriate governmental agency requires that the tenant vacate the premises, the tenant also shall recover:
(a) The entire amount of any deposit prepaid by the tenant; and
(b) All prepaid rent.
(3)(a) If a governmental agency responsible for the enforcement of a building, housing, or other appropriate code has notified the landlord that a dwelling will be condemned or will be unlawful to occupy due to the existence of conditions that violate applicable codes, statutes, ordinances, or regulations, a landlord, who knew or should have known of the existence of these conditions, shall be required to pay relocation assistance to the displaced tenants except that:
(i) A landlord shall not be required to pay relocation assistance to any displaced tenant in a case in which the condemnation or no occupancy order affects one or more dwelling units and directly results from conditions caused by a tenant's or any third party's illegal conduct without the landlord's prior knowledge;
(ii) A