Use the power of the Wraiths as the triggered ability resolves to determine the value of X. If one or more of those Wraiths are no longer on the battlefield at that time, use their power from when they were last on the battlefield.

Artwork
Loading artwork…
Witch-king, Sky Scourge
Tales of Middle-earth Commander · #511 · EN
Nonfoil—Foil—
Card rules
Flying
Whenever you attack with one or more Wraiths, exile the top X cards of your library, where X is their total power. You may play those cards this turn.
Undying (When this creature dies, if it had no +1/+1 counters on it, return it to the battlefield under its owner's control with a +1/+1 counter on it.)
5/5
Mythic · Illustrated by Campbell White
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions