Name:Hourglass of the Lost
ManaCost:2 W
Types:Artifact
A:AB$ Mana | Cost$ T | Produced$ W | SubAbility$ DBPutCounter | SpellDescription$ Add {W}. Put a time counter on CARDNAME.
SVar:DBPutCounter:DB$ PutCounter | CounterType$ TIME | CounterNum$ 1
A:AB$ ChangeZoneAll | Cost$ T SubCounter<X/TIME> Exile<1/CARDNAME> | CostDesc$ {T}, Remove X time counters from CARDNAME and exile it: | ChangeType$ Permanent.YouOwn+nonLand+cmcEQX | Origin$ Graveyard | Destination$ Battlefield | SorcerySpeed$ True | SpellDescription$ Return each nonland permanent card with mana value X from your graveyard to the battlefield. Activate only as a sorcery.
SVar:X:Count$xPaid
DeckHas:Ability$Counters|Graveyard
Oracle:{T}: Add {W}. Put a time counter on Hourglass of the Lost.\n{T}, Remove X time counters from Hourglass of the Lost and exile it: Return each nonland permanent card with mana value X from your graveyard to the battlefield. Activate only as a sorcery.
