If the target creature is an illegal target by the time Tendrils of Corruption tries to resolve, the spell doesn't resolve. You don't gain X life.

Artwork
Loading artwork…
Tendrils of Corruption
Foundations Commander · #128 · EN
Nonfoil—Foil—
Card rules
Tendrils of Corruption deals X damage to target creature and you gain X life, where X is the number of Swamps you control.
"Even swamps need sustenance. We will give it to them, and in turn, they will sustain us." —Ezrith, druid of the Dark Hours
Common · Illustrated by Mike Dringenberg
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
PreDH Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Penny Not Legal
Pioneer Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions