Name:Dying Wish
ManaCost:1 B
Types:Enchantment Aura
K:Enchant:Creature.YouCtrl:creature you control
SVar:AttachAILogic:Pump
T:Mode$ ChangesZone | ValidCard$ Card.EnchantedBy | Origin$ Battlefield | Destination$ Graveyard | Execute$ TrigLose | TriggerDescription$ When enchanted creature dies, target player loses X life and you gain X life, where X is its power.
SVar:TrigLose:DB$ LoseLife | ValidTgts$ Player | LifeAmount$ X | SubAbility$ DBGainLife
SVar:DBGainLife:DB$ GainLife | Defined$ You | LifeAmount$ X
SVar:X:TriggeredCard$CardPower
Oracle:Enchant creature you control\nWhen enchanted creature dies, target player loses X life and you gain X life, where X is its power.
