Name:Reckless Handling
ManaCost:1 R
Types:Sorcery
A:SP$ ChangeZone | Origin$ Library | Destination$ Hand | ChangeType$ Card.Artifact | ChangeNum$ 1 | SubAbility$ DBDiscard | SpellDescription$ Search your library for an artifact card, reveal it, put it into your hand, shuffle, then discard a card at random. If an artifact card was discarded this way, CARDNAME deals 2 damage to each opponent.
SVar:DBDiscard:DB$ Discard | Defined$ You | NumCards$ 1 | Mode$ Random | SubAbility$ DBDealDamage | RememberDiscarded$ True
SVar:DBDealDamage:DB$ DamageAll | ConditionDefined$ Remembered | ConditionPresent$ Card.Artifact | ConditionCompare$ EQ1 | StackDescription$ If an artifact card was discarded this way, CARDNAME deals 2 damage to each opponent | ValidPlayers$ Opponent | NumDmg$ 2 | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:NeedsToPlayVar:Z GE2
SVar:Z:Count$InYourHand
DeckHas:Ability$Discard
DeckHints:Type$Artifact
Oracle:Search your library for an artifact card, reveal it, put it into your hand, shuffle, then discard a card at random. If an artifact card was discarded this way, Reckless Handling deals 2 damage to each opponent.
