Name:Undercity Plunder
ManaCost:1 B
Types:Sorcery
A:SP$ Discard | ValidTgts$ Opponent | NumCards$ 1 | Mode$ TgtChoose | SubAbility$ DBChooseCard | SpellDescription$ Target opponent discards a card.
SVar:DBChooseCard:DB$ ChooseCard | UnlessCost$ Discard<1/Card> | UnlessPayer$ Targeted | Choices$ Card.TargetedPlayerOwn | ChoiceZone$ Library | AtRandom$ True | SubAbility$ DBConjure | OrString$ {p:You} conjures a duplicate of a random card from their library into your hand. | StackDescription$ SpellDescription | SpellDescription$ Then they may discard an additional card.
SVar:DBConjure:DB$ MakeCard | Conjure$ True | DefinedName$ ChosenCard | Zone$ Hand | RememberMade$ True | SubAbility$ DBClearChosen | StackDescription$ If they don't, {p:You} conjures a duplicate of a random card from their library into their hand. | SpellDescription$ If they don't, conjure a duplicate of a random card from their library into your hand.
SVar:DBClearChosen:DB$ Cleanup | ClearChosenCard$ True | SubAbility$ DBAnimate
SVar:DBAnimate:DB$ Animate | Defined$ Remembered | staticAbilities$ SpendAnyMana | Duration$ Perpetual | SubAbility$ DBCleanup | StackDescription$ SpellDescription | SpellDescription$ It perpetually gains "You may spend mana as though it were mana of any color to cast this spell."
SVar:SpendAnyMana:Mode$ ManaConvert | EffectZone$ Stack | ValidPlayer$ You | ValidCard$ Card.Self | ValidSA$ Spell | ManaConversion$ AnyType->AnyColor | Description$ You may spend mana as though it were mana of any color to cast this spell.
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
Oracle:Target opponent discards a card. Then they may discard an additional card. If they don't, conjure a duplicate of a random card from their library into your hand. It perpetually gains "You may spend mana as though it were mana of any color to cast this spell."
