You choose which spells to cast (if any) as Kefka's last ability resolves. You can't wait to cast them later in the turn. Timing restrictions based on their types are ignored.

Artwork
Loading artwork…
Kefka, Dancing Mad
Final Fantasy Commander · #84 · EN
Nonfoil—Foil—
Card rules
During your turn, Kefka has indestructible.
At the beginning of your end step, exile a card at random from each opponent's graveyard. You may cast any number of spells from among cards exiled this way without paying their mana costs. Then each player who owns a spell you cast this way loses life equal to its mana value.
6/6
Rare · Illustrated by Anton Solovianchyk
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
Cards you choose not to cast this way (or can't cast this way) remain in exile.
If a spell you cast has X in its mana cost, you must choose 0 as the value of X when casting it without paying its mana cost.
You cast the spells one at a time, choosing modes, targets, and so on. The last spell you cast will be the first one to resolve.
If you cast a spell "without paying its mana cost," you can't choose to cast it for any alternative costs. You can, however, pay additional costs, such as kicker costs. If the card has any mandatory additional costs, those must be paid to cast the spell.