A California court of appeal has issued its ruling in Nicollette Sheridan’s lawsuit over "Desperate Housewives," siding mostly with ABC and Touchstone Television, according to The Hollywood Reporter’s Hollywood, Esq.

The court decided the actress wasn’t unlawfully terminated when her character was killed off by the series, the story reports. However, Sheridan can refile her lawsuit to allege a violation of the state’s Labor Code, according to the story.

The ruling comes after a jury failed to reach a verdict in the case earlier this year, as reported previously. Sheridan claims she was fired from "Housewives" in retaliation for complaining that show creator Marc Cherry had struck her.

Sheridan initially sued for $20 million.

ABC/Touchstone’s lead attorney called the latest ruling a victory for the studio, the story notes. Sheridan’s attorney said in a statement, "We will prosecute Touchstone to the full extent of the law under Labor Code Section 6310."