OAKLAND — Two months before 36 people died in the Ghost Ship fire, an Oakland Fire Department employee entered the warehouse and observed exposed electrical wiring, recommending tenants fix the hazard, according to an amended lawsuit filed Wednesday by attorneys representing victim families.

Related Articles Ghost Ship fire: Oakland releases long-awaited report on deadly inferno

Exclusive: In jailhouse interview, Ghost Ship’s Max Harris rebuts allegations he blocked stairwell

Second Ghost Ship tenant charged with 36 counts of manslaughter

Oakland warehouse fire: Cop responded to reported rave, told of illegal housing in 2015 The 179-page amended lawsuit adds the city of Oakland, Alameda County and state of California to a growing list of defendents, and alleges the agencies failed in their duties to shut down the crowded fire trap and its illegal parties.

There are a few new details including in the complaint, although much of it outlines what this news agency has already reported: firefighters attending a party two years before the fire, police officers confronting the tenants over an illegal party and arson fire, city planning inspectors fielding complaints over illegal housing and blight, and county personnel walking through the premises as they monitored the master tenant’s children.

A city spokeswoman, Karen Boyd, referred a query about the lawsuit to the city attorney’s office, who did not immediately respond. The city is being defended in the suit by Sheppard Mullin, an international law firm that also represents this newspaper.

Alameda County Counsel Donna Ziegler said she had not seen it, and could not comment.

In new details, the lawsuit also hammered on the failures of the Ng family, who own the warehouse.

Zachary “Zeke” Schultz, a former Ghost Ship resident and tenant in the adjoining building, texted and spoke extensively with the Ngs about people living inside the warehouse illegally, according to the lawsuit.

“The Ngs agreed that this was a problem, and stated that they planned to terminate the lease, which was set to expire in November 2018,” the lawyers wrote.

The Ngs have avoided prosecution. Only Ghost Ship founder Derick Almena and his second-in-command Max Harris have been charged — each with 36 counts of involuntary manslaughter.

Numerous witnesses told this newspaper that Oakland firefighters entered the Ghost Ship during a party in 2014, and the lawsuit mentions a new encounter in October 2016.

“Fire personnel ‘Brian’ observed some exposed electrical wiring and mentioned that the wires should be covered up. All of these persons were specifically trained to recognize, identify, and report fire hazards,” the attorneys wrote in the amended complaint.

The plaintiffs’ attorneys also allege that police who interacted with people at the warehouse should have reported the illegal activities. The lawsuit claims that a city ordinance required cops “to report new businesses to the Chief of Police.”

“The Ghost Ship did not have permits. To obtain a permit an annual inspection needed to be conducted by the fire department. The Oakland Police should have demanded that the Ghost Ship cease operating in violation of the law and obtain a cabaret license,” the lawsuit alleges.

Alameda County child protective services employees entered the Ghost Ship on at least two occasions in July and September 2016 to monitor the Almena’s three children, removing them for several months, the lawyers wrote. They failed to report the dangerous conditions to other agencies.

“This is an unusual and negligent departure from protocol from the Social Services Agency that regularly interacts with sheriff, fire and other departments on discovery of dangerous conditions that jeopardize human life, especially in a setting where so many persons were exposed to risks of unsafe, unsanitary and life-threatening conditions,” the attorneys wrote.

Staff writer David DeBolt contributed to this report.