From 1ad1c313e6abc60680b537ab5fca97a4a4f1e0cd Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 15 Jun 2018 19:19:19 -0400 Subject: [PATCH] Implemented Viashino Pyromancer --- .../src/mage/cards/v/ViashinoPyromancer.java | 42 +++++++++++++++++++ Mage.Sets/src/mage/sets/CoreSet2019.java | 1 + 2 files changed, 43 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/v/ViashinoPyromancer.java diff --git a/Mage.Sets/src/mage/cards/v/ViashinoPyromancer.java b/Mage.Sets/src/mage/cards/v/ViashinoPyromancer.java new file mode 100644 index 0000000000..d4f6c45716 --- /dev/null +++ b/Mage.Sets/src/mage/cards/v/ViashinoPyromancer.java @@ -0,0 +1,42 @@ +package mage.cards.v; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.constants.SubType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetPlayerOrPlaneswalker; + +/** + * + * @author TheElk801 + */ +public final class ViashinoPyromancer extends CardImpl { + + public ViashinoPyromancer(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}"); + + this.subtype.add(SubType.VIASHINO); + this.subtype.add(SubType.WIZARD); + this.power = new MageInt(2); + this.toughness = new MageInt(1); + + // When Viashino Pyromancer enters the battlefield, it deals 2 damage to target player or planeswalker. + Ability ability = new EntersBattlefieldTriggeredAbility(new DamageTargetEffect(2)); + ability.addTarget(new TargetPlayerOrPlaneswalker()); + this.addAbility(ability); + } + + public ViashinoPyromancer(final ViashinoPyromancer card) { + super(card); + } + + @Override + public ViashinoPyromancer copy() { + return new ViashinoPyromancer(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2019.java b/Mage.Sets/src/mage/sets/CoreSet2019.java index 264098144f..97999c9a4a 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2019.java +++ b/Mage.Sets/src/mage/sets/CoreSet2019.java @@ -148,6 +148,7 @@ public final class CoreSet2019 extends ExpansionSet { cards.add(new SetCardInfo("Uncomfortable Chill", 82, Rarity.COMMON, mage.cards.u.UncomfortableChill.class)); cards.add(new SetCardInfo("Ursine Champion", 304, Rarity.COMMON, mage.cards.u.UrsineChampion.class)); cards.add(new SetCardInfo("Vampire Sovereign", 125, Rarity.UNCOMMON, mage.cards.v.VampireSovereign.class)); + cards.add(new SetCardInfo("Viashino Pyromancer", 166, Rarity.COMMON, mage.cards.v.ViashinoPyromancer.class)); cards.add(new SetCardInfo("Vivien Reid", 208, Rarity.MYTHIC, mage.cards.v.VivienReid.class)); cards.add(new SetCardInfo("Vivien's Invocation", 209, Rarity.RARE, mage.cards.v.ViviensInvocation.class)); cards.add(new SetCardInfo("Vivien's Jaguar", 305, Rarity.UNCOMMON, mage.cards.v.ViviensJaguar.class));