(6) A landlord may not be held liable in any cause of action for bringing an unlawful detainer action against a tenant for drug-related activity, for creating an imminent hazard to the physical safety of others, or for engaging in gang-related activity that renders people in at least two or more dwelling units or residences insecure in life or the use of property or that injures or endangers the safety or health of people in at least two or more dwelling units or residences under this section, if the unlawful detainer action was brought in good faith. Nothing in this section shall affect a landlord's liability under RCW 59.18.380 to pay all damages sustained by the tenant should the writ of restitution be wrongfully sued out.