If Meteor Swarm has one or more targets, and some (but not all) of them are illegal as Meteor Swarm tries to resolve, the amount of damage dealt to the remaining legal targets doesn't change. If all targets become illegal, Meteor Swarm won't resolve.

Artwork
Loading artwork…
Meteor Swarm
Adventures in the Forgotten Realms · #155 · EN
Nonfoil—Foil—
Card rules
Meteor Swarm deals 8 damage divided as you choose among X target creatures and/or planeswalkers.
Sometimes one fireball isn't enough.
Rare · Illustrated by Olivier Bernard
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander 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
You divide the damage as you cast Meteor Swarm. Each target must be assigned at least 1 damage. Because there is a maximum of eight targets, X can't be greater than 8.