If the enchantment is an illegal target when Cursebreak tries to resolve, it’ll be countered and none of its effects will happen. You won’t gain 2 life.

Artwork
Loading artwork…
Cursebreak
Avacyn Restored · #14 · EN
Nonfoil—Foil—
Card rules
Destroy target enchantment. You gain 2 life.
No longer the village pariah. No longer taunted and shamed. Sigrun was finally free.
Common · Illustrated by Sam Wolfe Connelly
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions