If one of the two target creatures is an illegal target when Trial of Agony resolves, the remaining creature's controller must choose the remaining creature. Trial of Agony will deal 5 damage to that creature.