Name:Pass the Torch
ManaCost:1 R
Types:Instant
A:SP$ DealDamage | ValidTgts$ Any | NumDmg$ 2 | SubAbility$ DBChoose | SpellDescription$ CARDNAME deals 2 damage to any target.
SVar:DBChoose:DB$ ChooseCard | ChoiceZone$ Hand | Choices$ Creature.YouOwn | ChoiceDesc$ creature | Mandatory$ True | SubAbility$ DBAnimate | SpellDescription$ Choose a creature card in your hand.
SVar:DBAnimate:DB$ Animate | Defined$ ChosenCard | Triggers$ DamageTrig | Duration$ Perpetual | StackDescription$ SpellDescription | SpellDescription$ It perpetually gains "Whenever this creature deals combat damage to a player, you may cast target card named Pass the Torch from your graveyard without paying its mana cost. If you do, this creature perpetually loses this ability".
SVar:DamageTrig:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Player | Execute$ TrigPlay | CombatDamage$ True | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, you may cast target card named Pass the Torch from your graveyard without paying its mana cost. If you do, this creature perpetually loses this ability.
SVar:TrigPlay:DB$ Play | TgtZone$ Graveyard | ValidTgts$ Card.namedPass the Torch+YouOwn | TgtPrompt$ Select target card named Pass the Torch in your graveyard | ValidSA$ Spell | WithoutManaCost$ True | Optional$ True | RememberPlayed$ True | AILogic$ ReplaySpell | SubAbility$ DBLosePerpAbility
SVar:DBLosePerpAbility:DB$ LosePerpetual | ConditionDefined$ Remembered | ConditionPresent$ Card | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
Oracle:Pass the Torch deals 2 damage to any target. Choose a creature card in your hand. It perpetually gains "Whenever this creature deals combat damage to a player, you may cast target card named Pass the Torch from your graveyard without paying its mana cost. If you do, this creature perpetually loses this ability".
