If Sparkmage's Gambit resolves, but the damage is prevented or redirected, the target creatures still won't be able to block that turn.

Artwork
Loading artwork…
Sparkmage's Gambit
Double Masters 2022 · #124 · EN
Nonfoil—Foil—
Card rules
Sparkmage's Gambit deals 1 damage to each of up to two target creatures. Those creatures can't block this turn.
"A touch of lightning, and anyone can be taught to dance." —Tobin, sparkmage
Common · Illustrated by Mathias Kollros
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Pioneer 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
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
If Sparkmage's Gambit has two targets, and one of them is illegal as Sparkmage's Gambit resolves, only the remaining legal target will be affected. The illegal target won't be dealt damage and will be able to block that turn. If both targets are illegal as Sparkmage's Gambit tries to resolve, it won't resolve and none of its effects will happen.