Name:Jeleva, Nephalia's Scourge
ManaCost:1 U B R
Types:Legendary Creature Vampire Wizard
PT:1/3
K:Flying
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigExile | TriggerDescription$ When CARDNAME enters the battlefield, each player exiles the top X cards of their library, where X is the amount of mana spent to cast NICKNAME.
SVar:TrigExile:DB$ Dig | Defined$ Player | DigNum$ X | ChangeNum$ All | DestinationZone$ Exile
SVar:X:Count$CastTotalManaSpent
T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigPlay | OptionalDecider$ You | TriggerDescription$ Whenever NICKNAME attacks, you may cast an instant or sorcery spell from among cards exiled with Jeleva without paying its mana cost.
SVar:TrigPlay:DB$ Play | ValidZone$ Exile | Valid$ Instant.ExiledWithSource,Sorcery.ExiledWithSource | Controller$ You | WithoutManaCost$ True | Amount$ 1
Oracle:Flying\nWhen Jeleva, Nephalia's Scourge enters the battlefield, each player exiles the top X cards of their library, where X is the amount of mana spent to cast Jeleva.\nWhenever Jeleva attacks, you may cast an instant or sorcery spell from among cards exiled with Jeleva without paying its mana cost.
