Yes, The Doomsday Machine. @UssGlenn is correct.
1st Clue: Kirk's in command (1), then not (2), then is (3), but not (4), then not (5), but is (6).
1st Clue: Kirk's in command (1), then not (2), then is (3), but not (4), then not (5), but is (6).
1. Kirk arrives in command of the Enterprise
2. Kirk beams to the Constellation at which point, Spock is in command of Enterprise. Decker is command of Constellation, so, Kirk is not in command of anything at this point.
3. After Decker beams off Constellation, Kirk is now in command of Constellation,
4. but not of Enterprise.
5. After Kirk beams off Constellation, Kirk is not in command of Constellation,
6. but he is now back in command of Enterprise. Whew.
2nd Clue: Kirk searches vast distances for a friend.2. Kirk beams to the Constellation at which point, Spock is in command of Enterprise. Decker is command of Constellation, so, Kirk is not in command of anything at this point.
3. After Decker beams off Constellation, Kirk is now in command of Constellation,
4. but not of Enterprise.
5. After Kirk beams off Constellation, Kirk is not in command of Constellation,
6. but he is now back in command of Enterprise. Whew.
Enterprise gets a distress call from the Constellation. Kirk searches through several star systems looking for the Constellation. Kirk and Matt Decker are on first name basis, so, they are friends to some extent.
3rd Clue: Kirk to the rescue.Kirk gets the Constellation moving and shooting to pull the Planet Killer off the Enterprise before it eats them.
4th Clue: Four Planets, then Three Planets, then Two Planets.When Decker first gets to System L-374, there are four planets intact, with the Planet Killer eating the fourth planet. After the Constellation is wrecked, Decker evacuates his crew down to the third planet. When Kirk arrives in the system, there are only two planets intact.