text: If a spell or ability has two or more targets where the legality of one or more of those targets depends on what one or more of the other targets are, the targets are chosen at random in the order specified on the card. If choosing one player or object as a target would cause no legal targets to remain for another target, that player or object can’t be randomly chosen.