If the target creature becomes an illegal target for Take Heart, the spell doesn’t resolve. You don’t gain life.

Artwork
Loading artwork…
Take Heart
Jumpstart · #134 · EN
Nonfoil—Foil—
Card rules
Target creature gets +2/+2 until end of turn. You gain 1 life for each attacking creature you control.
In the quiet before a battle, Boros soldiers whisper prayers that steady their nerves and focus their minds.
Common · Illustrated by Lucas Graciano
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
Penny Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School 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
You can cast Take Heart even if you control no attacking creatures, perhaps because it’s not even your turn. The target creature gets +2/+2 even though you don’t gain life.