18th episode of the second season of Star Trek: The Next Generation
director: Winrich Kolbe
screenwriter: Melinda M. Snodgrass
Wikipedia