diff --git a/Mage.Sets/src/mage/cards/v/VoldarenThrillseeker.java b/Mage.Sets/src/mage/cards/v/VoldarenThrillseeker.java new file mode 100644 index 0000000000..261f62aeaa --- /dev/null +++ b/Mage.Sets/src/mage/cards/v/VoldarenThrillseeker.java @@ -0,0 +1,56 @@ +package mage.cards.v; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.dynamicvalue.DynamicValue; +import mage.abilities.dynamicvalue.common.SourcePermanentPowerCount; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.keyword.BackupAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.target.common.TargetAnyTarget; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class VoldarenThrillseeker extends CardImpl { + + private static final DynamicValue xValue = new SourcePermanentPowerCount(false); + + public VoldarenThrillseeker(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}"); + + this.subtype.add(SubType.VAMPIRE); + this.subtype.add(SubType.WARRIOR); + this.power = new MageInt(1); + this.toughness = new MageInt(1); + + // Backup 2 + BackupAbility backupAbility = new BackupAbility(this, 2); + this.addAbility(backupAbility); + + // {1}, Sacrifice this creature: It deals damage equal to its power to any target. + Ability ability = new SimpleActivatedAbility( + new DamageTargetEffect(xValue, "it"), new GenericManaCost(1) + ); + ability.addCost(new SacrificeSourceCost().setText("sacrifice this creature")); + ability.addTarget(new TargetAnyTarget()); + this.addAbility(ability); + } + + private VoldarenThrillseeker(final VoldarenThrillseeker card) { + super(card); + } + + @Override + public VoldarenThrillseeker copy() { + return new VoldarenThrillseeker(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java index 3eafc92776..498d4015ad 100644 --- a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java +++ b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java @@ -76,6 +76,7 @@ public final class MarchOfTheMachine extends ExpansionSet { cards.add(new SetCardInfo("Thornwood Falls", 274, Rarity.COMMON, mage.cards.t.ThornwoodFalls.class)); cards.add(new SetCardInfo("Tranquil Cove", 275, Rarity.COMMON, mage.cards.t.TranquilCove.class)); cards.add(new SetCardInfo("Transcendent Message", 83, Rarity.RARE, mage.cards.t.TranscendentMessage.class)); + cards.add(new SetCardInfo("Voldaren Thrillseeker", 171, Rarity.RARE, mage.cards.v.VoldarenThrillseeker.class)); cards.add(new SetCardInfo("Wind-Scarred Crag", 276, Rarity.COMMON, mage.cards.w.WindScarredCrag.class)); cards.add(new SetCardInfo("Yargle and Multani", 256, Rarity.RARE, mage.cards.y.YargleAndMultani.class)); cards.add(new SetCardInfo("Zephyr Winder", 328, Rarity.COMMON, mage.cards.z.ZephyrWinder.class));