The copy will have the same target as the original spell unless you choose a new one. If the target is illegal but you can't choose a new legal target, it remains unchanged.

Artwork
Loading artwork…
Lumaret's Favor
Secrets of Strixhaven · #153 · EN
Nonfoil—Foil—
Card rules
Infusion — When you cast this spell, copy it if you gained life this turn. You may choose new targets for the copy.
Target creature gets +2/+4 until end of turn.
Though the lumarets were ignored by the other Witherbloom students, it was clear to Lluwen they were much more complex than they seemed.
Uncommon · Illustrated by Mariah Tekulve
Format legality
Alchemy Legal
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Future Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Tlr Legal
Vintage Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
The infusion ability will trigger when you cast Lumaret's Favor regardless of whether you've gained life this turn. As that ability resolves, it will check to see if you've gained life this turn. If you have, Lumaret's Favor will be copied once.