If the target creature is an illegal target as Winter's Intervention tries to resolve, it won't resolve and none of its effects will happen. You won't gain life.

Artwork
Loading artwork…
Winter's Intervention
Duskmourn: House of Horror · #123 · EN
Nonfoil—Foil—
Card rules
Winter's Intervention deals 2 damage to target creature. You gain 2 life.
"Can we trust him?" Niko whispered as they eyed the stranger. "I don't know," the Wanderer replied, "but he's a lot friendlier than the creature that was chasing us."
Common · Illustrated by Cristi Balanescu
Format legality
Alchemy Legal
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Tlr Legal
Vintage Legal
Future Not Legal
Old School Not Legal
PreDH Not Legal
Premodern Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions