Name:Secret Salvage
ManaCost:3 B B
Types:Sorcery
A:SP$ ChangeZone | Origin$ Graveyard | Destination$ Exile | ValidTgts$ Card.nonLand+YouOwn | TgtPrompt$ Select target nonland card in your graveyard | RememberTargets$ True | ForgetOtherTargets$ True | SubAbility$ DBChange | SpellDescription$ Exile target nonland card from your graveyard. Search your library for any number of cards with the same name as that card, reveal them, put them into your hand, then shuffle.
SVar:DBChange:DB$ ChangeZone | Origin$ Library | Destination$ Hand | ChangeType$ Remembered.sameName | ChangeNum$ X | SubAbility$ DBCleanup
SVar:X:Count$InYourLibrary.Remembered.sameName
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
Oracle:Exile target nonland card from your graveyard. Search your library for any number of cards with the same name as that card, reveal them, put them into your hand, then shuffle.
