Name:Last Stand
ManaCost:W U B R G
Types:Sorcery
A:SP$ LoseLife | ValidTgts$ Opponent | TgtPrompt$ Select target opponent | LifeAmount$ SwampsYouControl | SubAbility$ DBDamageMountain | SpellDescription$ Target opponent loses 2 life for each Swamp you control. CARDNAME deals damage to target creature equal to the number of Mountains you control. Create a 1/1 green Saproling creature token for each Forest you control. You gain 2 life for each Plains you control. Draw a card for each Island you control, then discard that many cards.
SVar:DBDamageMountain:DB$ DealDamage | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumDmg$ MountainsYouControl | SubAbility$ DBTokenForest
SVar:DBTokenForest:DB$ Token | TokenAmount$ ForestsYouControl | TokenScript$ g_1_1_saproling | TokenOwner$ You | SubAbility$ DBGainLifePlains
SVar:DBGainLifePlains:DB$ GainLife | Defined$ You | LifeAmount$ PlainsYouControl | SubAbility$ DBDrawCardIsland
SVar:DBDrawCardIsland:DB$ Draw | Defined$ You | NumCards$ IslandsYouControl | SubAbility$ DBDiscardJustAsMany
SVar:DBDiscardJustAsMany:DB$ Discard | Defined$ You | NumCards$ IslandsYouControl | Mode$ TgtChoose
SVar:SwampsYouControl:Count$TypeYouCtrl.Swamp/Times.2
SVar:MountainsYouControl:Count$TypeYouCtrl.Mountain
SVar:ForestsYouControl:Count$TypeYouCtrl.Forest
SVar:PlainsYouControl:Count$TypeYouCtrl.Plains/Times.2
SVar:IslandsYouControl:Count$TypeYouCtrl.Island
AI:RemoveDeck:Random
Oracle:Target opponent loses 2 life for each Swamp you control. Last Stand deals damage to target creature equal to the number of Mountains you control. Create a 1/1 green Saproling creature token for each Forest you control. You gain 2 life for each Plains you control. Draw a card for each Island you control, then discard that many cards.
