"Spectre of the Gun" is the sixth episode of the third season of the American science fiction television series Star Trek. Written by former producer Gene L. Coon (under the pseudonym of Lee Cronin) and directed by Vincent McEveety, it was first broadcast on October 25, 1968. In the episode, having been found trespassing into Melkotian space, Captain Kirk and members of his crew are sent to die in a re-enactment of the Gunfight at the O.K. Corral. Plot The Federation starship Enterprise has been directed to make contact with a reclusive species known as the Melkotians. As they approach the Melkotians' planet, they encounter a probe carrying a warning for them to stay away. Crewmembers hear the warning in their native languages, suggesting that the Melkotians are telepaths. Despite First Officer Spock's warnings about the formidableness of telepaths, Captain Kirk orders the ship to remain on course. Once in orbit, Kirk, Spock, Chief Engineer Scott, Chief Medical Officer Dr. McCoy, and Navigator Ensign Chekov transport to the surface. They are met by a Melkotian emissary, who declares that they have been condemned to death for trespassing. The landing party then find themselves in an abstract landscape that resembles an Old Western town, though many buildings are only simple wooden facades. Furthermore, they find their phasers have been changed into six-shooters, and they cannot contact the Enterprise. Exploring the town, they find a newspaper dated October 26, 1881, the date of the infamous gunfight at the O.K. Corral. The townspeople believe the landing party are members of the Cowboys: Kirk as Ike Clanton, Scott as Billy Clanton, McCoy as Tom McLaury, Spock as Frank McLaury, and Chekov as Billy Claiborne. The crew soon discovers that men dressed as the Earp brothers; Virgil, Wyatt, and Morgan, as well as their deputy Doc Holliday, are preparing to fight them at the appointed time. Knowing that in real history the gunfight was fatal to most of the Cowboys, the Enterprise crew try to change their fates by getting the sheriff and the townspeople to stop the fight and even attempt to negotiate with the Earps, but nothing works. However, when a barmaid, Sylvia, gets close to Chekov, a jealous Morgan Earp shoots him dead. Spock remarks that the real Billy Claiborne had survived, suggesting that the day's events could be changed in other ways. To that end, Spock creates an improvised tranquilizer gas