Name:Sorin, Grim Nemesis
ManaCost:4 W B
Types:Legendary Planeswalker Sorin
Loyalty:6
A:AB$ Dig | Cost$ AddCounter<1/LOYALTY> | DigNum$ 1 | Reveal$ True | ChangeNum$ All | ChangeValid$ Card | DestinationZone$ Hand | RememberChanged$ True | SubAbility$ DBLoseLife | Planeswalker$ True | SpellDescription$ Reveal the top card of your library and put that card into your hand. Each opponent loses life equal to its mana value.
SVar:DBLoseLife:DB$ LoseLife | LifeAmount$ Y | Defined$ Opponent | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:Y:Remembered$CardManaCost
A:AB$ DealDamage | Cost$ SubCounter<X/LOYALTY> | ValidTgts$ Creature,Planeswalker | TgtPrompt$ Select target creature or planeswalker | NumDmg$ X | Planeswalker$ True | SubAbility$ DBGainLife | SpellDescription$ CARDNAME deals X damage to target creature or planeswalker and you gain X life.
SVar:DBGainLife:DB$ GainLife | LifeAmount$ X | Defined$ You
SVar:X:Count$xPaid
A:AB$ Token | Cost$ SubCounter<9/LOYALTY> | Planeswalker$ True | TokenAmount$ Z | TokenScript$ b_1_1_vampire_knight_lifelink | TokenOwner$ You | Ultimate$ True | SpellDescription$ Create a number of 1/1 black Vampire Knight creature tokens with lifelink equal to the highest life total among all players.
SVar:Z:PlayerCountPlayers$HighestLifeTotal
Oracle:[+1]: Reveal the top card of your library and put that card into your hand. Each opponent loses life equal to its mana value.\n[-X]: Sorin, Grim Nemesis deals X damage to target creature or planeswalker and you gain X life.\n[-9]: Create a number of 1/1 black Vampire Knight creature tokens with lifelink equal to the highest life total among all players.
