The ability only triggers when one or more creatures attack you. It will not trigger on creatures attacking a planeswalker you control.

Artwork
Loading artwork…
Orim's Prayer
Tempest · #32 · EN
Nonfoil—Foil—
Card rules
Whenever one or more creatures attack you, you gain 1 life for each attacking creature.
"As usual, there will be time for prayer only *after* the worst happens." —Orim, Samite healer
Uncommon · Illustrated by Donato Giancola
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
PreDH Legal
Premodern 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
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer 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