Always prepared. Starship captains have brilliant tactical minds, and are always prepared. The captain may declare a single action which they took prior to the encounter (even if they didn't know the encounter was going to take place) which helps them in this exact scenario. This must be an action they were capable of.

Leadership. Donate LUC (4d6) dice to allies; must declare before dice are rolled.