Name:Immortal Coil
ManaCost:2 B B
Types:Artifact
A:AB$ Draw | Cost$ T ExileFromGrave<2/Card> | CostDesc$ {T}, Exile two cards from your graveyard: | NumCards$ 1 | SpellDescription$ Draw a card.
R:Event$ DamageDone | ActiveZones$ Battlefield | ValidTarget$ You | ReplaceWith$ ChangeZone | PreventionEffect$ True | Description$ If damage would be dealt to you, prevent that damage. Exile a card from your graveyard for each 1 damage prevented this way.
SVar:ChangeZone:DB$ ChangeZone | Hidden$ True | Mandatory$ True | ChangeType$ Card | ChangeNum$ X | DefinedPlayer$ ReplacedTarget | Origin$ Graveyard | Destination$ Exile
T:Mode$ Always | TriggerZones$ Battlefield | IsPresent$ Card.YouCtrl | PresentZone$ Graveyard | PresentCompare$ EQ0 | Execute$ TrigLoseGame | TriggerDescription$ When there are no cards in your graveyard, you lose the game.
SVar:TrigLoseGame:DB$ LosesGame | Defined$ You
SVar:X:ReplaceCount$DamageAmount
SVar:Y:Count$ValidGraveyard Card.YouCtrl
SVar:NeedsToPlayVar:Y GE1
AI:RemoveDeck:Random
SVar:Picture:http://www.wizards.com/global/images/magic/general/immortal_coil.jpg
Oracle:{T}, Exile two cards from your graveyard: Draw a card.\nIf damage would be dealt to you, prevent that damage. Exile a card from your graveyard for each 1 damage prevented this way.\nWhen there are no cards in your graveyard, you lose the game.
