If a municipality or a county revokes a certificate of occupancy for a leased premises because of the landlord's failure to maintain the premises, the landlord is liable to a tenant who is not in default under the lease for:
(1) the full amount of the tenant's security deposit;
(2) the pro rata portion of any rental payment the tenant has paid in advance;
(3) the tenant's actual damages, including any moving costs, utility connection fees, storage fees, and lost wages; and
(4) court costs and attorney's fees arising from any related cause of action by the tenant against the landlord.