If one of the cards that's revealed to pay the cost leaves its owner's hand before the ability resolves, it stops being revealed, but the value of X is not affected.

Artwork
Loading artwork…
Martyr of Ashes
Coldsnap · #92 · EN
Nonfoil—Foil—
Card rules
2, Reveal X red cards from your hand, Sacrifice this creature: This creature deals X damage to each creature without flying.
1/1
She turns ash into flame and burns enemies to ash.
Common · Illustrated by Ralph Horsley
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
PreDH Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Penny Not Legal
Pioneer Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Each card that's revealed to pay the cost remains revealed until the ability leaves the stack.
A card that's already revealed for another cost or because of an effect can be revealed to pay this cost.