If all the attacking creatures attack your planeswalkers, you can’t cast Heavy Fog. To cast it, a creature needs to have attacked _you_.

Artwork
Loading artwork…
Heavy Fog
Portal Three Kingdoms · #136 · EN
Nonfoil—Foil—
Card rules
Cast this spell only during the declare attackers step and only if you've been attacked this step.
Prevent all damage that would be dealt to you this turn by attacking creatures.
Uncommon · Illustrated by Liu Shangying
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander 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
Modern Not Legal
Old School 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
Heavy Fog prevents only damage that would be dealt to you by attacking creatures. It won’t prevent damage attacking creatures would deal to creatures or planeswalkers you control.
Heavy Fog prevents all damage attacking creatures would deal to you this turn, not just combat damage. Noncombat damage from those creatures is prevented only if they’re still attacking at the time that damage would be dealt or, if the creature has left the battlefield by then, if it was an attacking creature at the time it left.