Name:Anzrag's Rampage
ManaCost:3 R R
Types:Sorcery
A:SP$ DestroyAll | ValidCards$ Artifact.YouDontCtrl | ValidDescription$ artifacts you don't control | SubAbility$ DBDig | SpellDescription$ Destroy all artifacts you don't control, then exile the top X cards of your library, where X is the number of artifacts that were put into graveyards from the battlefield this turn.
SVar:DBDig:DB$ Dig | DigNum$ X | ChangeNum$ All | ChangeValid$ Card | DestinationZone$ Exile | RememberChanged$ True | SubAbility$ DBChangeZone
SVar:DBChangeZone:DB$ ChangeZone | Origin$ Exile | Destination$ Battlefield | Imprint$ True | ChangeType$ Creature.IsRemembered | Hidden$ True | Optional$ True | ChangeNum$ 1 | SubAbility$ DBAnimate | SpellDescription$ You may put a creature card exiled this way onto the battlefield. It gains haste. Return it to your hand at the beginning of the next end step.
SVar:DBAnimate:DB$ Animate | Keywords$ Haste | Duration$ Permanent | Defined$ Imprinted | SubAbility$ DBCleanup | AtEOT$ Hand
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True | ClearImprinted$ True
SVar:X:Count$ThisTurnEntered_Graveyard_from_Battlefield_Card.Artifact
DeckHints:Ability$Sacrifice & Type$Artifact
Oracle:Destroy all artifacts you don't control, then exile the top X cards of your library, where X is the number of artifacts that were put into graveyards from the battlefield this turn. You may put a creature card exiled this way onto the battlefield. It gains haste. Return it to your hand at the beginning of the next end step.
