If the targeted permanent or player is an illegal target by the time Goblin Artillery's ability would resolve, the entire ability doesn't resolve. You won't be dealt any damage.

Artwork
Loading artwork…
Goblin Artillery
Jumpstart 2022 · #541 · EN
Nonfoil—Foil—
Card rules
1/3
Most goblins get their turn firing the catapult, but few achieve the coveted title of Ammunition Holder.
Uncommon · Illustrated by Alex Horley-Orlandelli
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
PreDH 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
Pauper Not Legal
Pauper Commander Not Legal
Pioneer 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