Name:Ulgrotha Charm
ManaCost:2 U
Types:Instant
A:SP$ Charm | Choices$ MerchantScroll,MemoryLapse,Forget | Defined$ You
SVar:MerchantScroll:DB$ ChangeZone | Origin$ Library | Destination$ Hand | ChangeType$ Instant.Blue | ChangeNum$ 1 | SpellDescription$ Search your library for a blue instant card, reveal that card, put it into your hand, then shuffle.
SVar:MemoryLapse:DB$ Counter | TargetType$ Spell | TgtPrompt$ Select target spell | ValidTgts$ Card | Destination$ TopOfLibrary | SpellDescription$ Counter target spell. If that spell is countered this way, put it on top of its owner's library instead of into that player's graveyard.
SVar:Forget:DB$ Discard | ValidTgts$ Player | TgtPrompt$ Select target player | Mode$ TgtChoose | NumCards$ 2 | RememberDiscarded$ True | SubAbility$ DBDraw | SpellDescription$ Target player discards two cards, then draws as many cards as they discarded this way.
SVar:DBDraw:DB$ Draw | Defined$ Targeted | NumCards$ X | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:X:Remembered$Amount
Oracle:Choose one —\n• Merchant Scroll (Search for a blue instant.)\n• Memory Lapse (Counter a spell and put it on top of its owner's library.)\n• Forget (Target player discards 2, then draws that many.)
