You can cast Tandem Tactics with no targets. When it resolves, you’ll gain 2 life. However, if you cast Tandem Tactics with any targets and all of those targets are illegal as it tries to resolve, it won’t resolve and none of its effects will happen. You won’t gain 2 life in that case.

Artwork
Loading artwork…
Tandem Tactics
Ravnica: Clue Edition · #76 · EN
Nonfoil—Foil—
Card rules
Up to two target creatures each get +1/+2 until end of turn. You gain 2 life.
In times of infestation and war, Zendikar favors the blades that strike in unison.
Common · Illustrated by David Gaillet
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
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Penny 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