From 486709cf290ae726af12c4d8e43c786c8d5e23ed Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 3 Nov 2022 09:21:19 -0400 Subject: [PATCH] [BRO] Implement Powerstone Engineer --- .../src/mage/cards/p/PowerstoneEngineer.java | 39 +++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + Utils/mtg-cards-data.txt | 1 + 3 files changed, 41 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/p/PowerstoneEngineer.java diff --git a/Mage.Sets/src/mage/cards/p/PowerstoneEngineer.java b/Mage.Sets/src/mage/cards/p/PowerstoneEngineer.java new file mode 100644 index 00000000000..dbe5703b66f --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/PowerstoneEngineer.java @@ -0,0 +1,39 @@ +package mage.cards.p; + +import mage.MageInt; +import mage.abilities.common.DiesSourceTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.game.permanent.token.PowerstoneToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class PowerstoneEngineer extends CardImpl { + + public PowerstoneEngineer(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.ARTIFICER); + this.power = new MageInt(2); + this.toughness = new MageInt(1); + + // When Powerstone Engineer dies, create a tapped Powerstone token. + this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new PowerstoneToken(), 1, true))); + } + + private PowerstoneEngineer(final PowerstoneEngineer card) { + super(card); + } + + @Override + public PowerstoneEngineer copy() { + return new PowerstoneEngineer(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index aa9f0c7d3f0..20232d895a1 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -106,6 +106,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Phyrexian Fleshgorger", 121, Rarity.MYTHIC, mage.cards.p.PhyrexianFleshgorger.class)); cards.add(new SetCardInfo("Plains", 268, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Platoon Dispenser", 36, Rarity.MYTHIC, mage.cards.p.PlatoonDispenser.class)); + cards.add(new SetCardInfo("Powerstone Engineer", 20, Rarity.COMMON, mage.cards.p.PowerstoneEngineer.class)); cards.add(new SetCardInfo("Powerstone Fracture", 112, Rarity.COMMON, mage.cards.p.PowerstoneFracture.class)); cards.add(new SetCardInfo("Queen Kayla bin-Kroog", 218, Rarity.RARE, mage.cards.q.QueenKaylaBinKroog.class)); cards.add(new SetCardInfo("Reconstructed Thopter", 242, Rarity.UNCOMMON, mage.cards.r.ReconstructedThopter.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 1650a6e9f7a..695265c8d7a 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -46225,6 +46225,7 @@ Loran of the Third Path|The Brothers' War|12|R|{2}{W}|Legendary Creature - Human Loran, Disciple of History|The Brothers' War|13|U|{3}{W}|Legendary Creature - Human Artificer|3|3|Whenever Loran, Disciple of History or another legendary creature enters the battlefield under your control, return target artifact from your graveyard to your hand.| Mass Production|The Brothers' War|15|U|{5}{W}|Sorcery|||Create four 1/1 colorless Soldier artifact creature tokens.| Myrel, Shield of Argive|The Brothers' War|18|M|{3}{W}|Legendary Creature - Human Soldier|3|4|During your turn, your opponents can't cast spells or activate abilities of artifacts, creatures, or enchantments.$Whenever Myrel, Shield of Argive attacks, create X 1/1 colorless Soldier artifact creature tokens, where X is the number of Soldiers you control.| +Powerstone Engineer|The Brothers' War|20|C|{1}{W}|Creature - Human Artificer|2|1|When Powerstone Engineer dies, create a tapped Powerstone token.| Recruitment Officer|The Brothers' War|23|U|{W}|Creature - Human Soldier|2|1|{3}{W}: Look at the top four cards of your library. You may reveal a creature card with mana value 3 or less from among them and put it into your hand. Put the rest on the bottom of your library in a random order.| Repair and Recharge|The Brothers' War|24|U|{3}{W}{W}|Sorcery|||Return target artifact, enchantment, or planeswalker card from your graveyard to the battlefield. Create a tapped Powerstone token.| Siege Veteran|The Brothers' War|25|R|{2}{W}|Creature - Human Soldier|2|2|At the beginning of combat on your turn, put a +1/+1 counter on target creature you control.$Whenever another nontoken Soldier you control dies, create a 1/1 colorless Soldier artifact creature token.|