If Gadwick enters the battlefield without being cast, or if it was cast for a cost other than its mana cost, the value of X for its first ability is 0.

Artwork
Loading artwork…
Gadwick, the Wizened
The List · #ELD-48 · EN
Nonfoil—Foil—
Card rules
When Gadwick enters, draw X cards.
Whenever you cast a blue spell, tap target nonland permanent an opponent controls.
3/3
His name is spoken only in whispers—but he hears just the same.
Rare · Illustrated by Colin Boyer
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Gadwick's second ability resolves before the spell that caused it to trigger. It resolves even if that spell is countered.
Gadwick's triggered ability won't trigger when you cast it because it's not on the battlefield yet.