Name:Rites of Refusal
ManaCost:1 U
Types:Instant
A:SP$ Discard | AnyNumber$ True | Optional$ True | Mode$ TgtChoose | RememberDiscarded$ True | SubAbility$ DBCounter | SpellDescription$ Discard any number of cards. Counter target spell unless its controller pays {3} for each card discarded this way.
SVar:DBCounter:DB$ Counter | TargetType$ Spell | ValidTgts$ Card | TgtPrompt$ Select target spell | UnlessCost$ Y | UnlessPayer$ TargetedController | SubAbility$ DBCleanup
SVar:X:Remembered$Amount
SVar:Y:SVar$X/Times.3
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
AI:RemoveDeck:All
Oracle:Discard any number of cards. Counter target spell unless its controller pays {3} for each card discarded this way.
