If Serra Avatar is no longer in your graveyard when its triggered ability resolves, you still shuffle your library.

Artwork
Loading artwork…
Serra Avatar
Dominaria Remastered · #272 · EN
Nonfoil—Foil—
Card rules
Serra Avatar's power and toughness are each equal to your life total.
When Serra Avatar is put into a graveyard from anywhere, shuffle it into its owner's library.
*/*
Though Serra is long dead, her legacy of grace and kindness will live on forever.
Mythic · Illustrated by Victor Adame Minguez
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
PreDH Legal
Premodern 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
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
The ability that defines Serra Avatar’s power and toughness works in all zones, not only the battlefield.