Name:Cabal Shrine
ManaCost:1 B B
Types:Enchantment
T:Mode$ SpellCast | ValidCard$ Card | ValidActivatingPlayer$ Player | TriggerZones$ Battlefield | Execute$ TrigDiscard | TriggerDescription$ Whenever a player casts a spell, that player discards X cards, where X is the number of cards in all graveyards with the same name as that spell.
SVar:TrigDiscard:DB$ Discard | Defined$ TriggeredActivator | NumCards$ X | Mode$ TgtChoose
SVar:X:Count$ValidGraveyard Card.sharesNameWith TriggeredCard
AI:RemoveDeck:Random
Oracle:Whenever a player casts a spell, that player discards X cards, where X is the number of cards in all graveyards with the same name as that spell.
