Red Sun's Zenith deals X damage to any target. If a creature dealt damage this way would die this turn, exile it instead. Shuffle Red Sun's Zenith into its owner's library.
If this spell doesn’t resolve, none of its effects occur. In particular, it will go to the graveyard rather than to its owner’s library.