Kaervek purge: add Cleanup

This commit is contained in:
Hanmac
2017-07-02 04:49:09 +00:00
parent 96bc9a159b
commit c8bc1574a8

View File

@@ -2,7 +2,8 @@ Name:Kaervek's Purge
ManaCost:X B R
Types:Sorcery
A:SP$ Destroy | Cost$ X B R | ValidTgts$ Creature | TgtPrompt$ Select target creature | RememberLKI$ True | SubAbility$ DBDamage | References$ X | SpellDescription$ Destroy target creature with converted mana cost X. If that creature dies this way, CARDNAME deals damage equal to the creature's power to the creature's controller.
SVar:DBDamage:DB$DealDamage | Defined$ TargetedController | NumDmg$ Z | ConditionCheckSVar$ Y | ConditionSVarCompare$ GE1 | References$ Y,Z
SVar:DBDamage:DB$DealDamage | Defined$ TargetedController | NumDmg$ Z | ConditionCheckSVar$ Y | ConditionSVarCompare$ GE1 | References$ Y,Z | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:X:Targeted$CardManaCost
SVar:Y:Remembered$Amount
SVar:Z:RememberedLKI$CardPower