The Haunted Cop Shop (1987)
How deep did Wai's involvement run? I don't know. He may have written a really good script that was mostly ignored on set. Or, maybe, and I like think this is true, Wong Kar-Wai wrote a film where the protagonists kill a dog.