Name:Primitive Justice
ManaCost:1 R
Types:Sorcery
A:SP$ Destroy | AnnounceTitle$ how many times to pay the additional cost | Announce$ AdditionalCostPayTimesR,AdditionalCostPayTimesG | ValidTgts$ Artifact | SubAbility$ DBDestroy2 | SpellDescription$ Destroy target artifact. For each additional {1}{R} you paid, destroy another target artifact. For each additional {1}{G} you paid, destroy another target artifact, and you gain 1 life.
SVar:DBDestroy2:DB$ Destroy | ValidTgts$ Artifact | TargetUnique$ True | TargetMin$ AdditionalCostPayTimesR | TargetMax$ AdditionalCostPayTimesR | SubAbility$ DBDestroy3
SVar:DBDestroy3:DB$ Destroy | ValidTgts$ Artifact | TargetUnique$ True | TargetMin$ AdditionalCostPayTimesG | TargetMax$ AdditionalCostPayTimesG | SubAbility$ DBGainLife
S:Mode$ RaiseCost | ValidCard$ Card.Self | Type$ Spell | Cost$ 1 R | Amount$ AdditionalCostPayTimesR | EffectZone$ All | Description$ As an additional cost to cast this spell, you may pay {1}{R} and/or {1}{G} any number of times.
S:Mode$ RaiseCost | ValidCard$ Card.Self | Type$ Spell | Cost$ 1 G | Amount$ AdditionalCostPayTimesG | EffectZone$ All
SVar:DBGainLife:DB$ GainLife | Defined$ You | LifeAmount$ AdditionalCostPayTimesG
SVar:AdditionalCostPayTimesR:Number$0
SVar:AdditionalCostPayTimesG:Number$0
Oracle:As an additional cost to cast this spell, you may pay {1}{R} and/or {1}{G} any number of times.\nDestroy target artifact. For each additional {1}{R} you paid, destroy another target artifact. For each additional {1}{G} you paid, destroy another target artifact, and you gain 1 life.
