From 9efe1f856d4e64bfc4b8c796bd649b1756c15e23 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 4 Nov 2022 18:53:52 -0400 Subject: [PATCH] [BRO] Implement Stone Retrieval Unit --- .../src/mage/cards/s/StoneRetrievalUnit.java | 40 +++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + 2 files changed, 41 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/StoneRetrievalUnit.java diff --git a/Mage.Sets/src/mage/cards/s/StoneRetrievalUnit.java b/Mage.Sets/src/mage/cards/s/StoneRetrievalUnit.java new file mode 100644 index 0000000000..c0db1ca3d0 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/StoneRetrievalUnit.java @@ -0,0 +1,40 @@ +package mage.cards.s; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +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 StoneRetrievalUnit extends CardImpl { + + public StoneRetrievalUnit(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{4}"); + + this.subtype.add(SubType.CONSTRUCT); + this.power = new MageInt(2); + this.toughness = new MageInt(3); + + // When Stone Retrieval Unit enters the battlefield, create a tapped Powerstone token. + this.addAbility(new EntersBattlefieldTriggeredAbility( + new CreateTokenEffect(new PowerstoneToken(), 1, true) + )); + } + + private StoneRetrievalUnit(final StoneRetrievalUnit card) { + super(card); + } + + @Override + public StoneRetrievalUnit copy() { + return new StoneRetrievalUnit(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index 6c02c81f45..057301fadb 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -160,6 +160,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Splitting the Powerstone", 63, Rarity.UNCOMMON, mage.cards.s.SplittingThePowerstone.class)); cards.add(new SetCardInfo("Static Net", 27, Rarity.UNCOMMON, mage.cards.s.StaticNet.class)); cards.add(new SetCardInfo("Stern Lesson", 64, Rarity.COMMON, mage.cards.s.SternLesson.class)); + cards.add(new SetCardInfo("Stone Retrieval Unit", 248, Rarity.COMMON, mage.cards.s.StoneRetrievalUnit.class)); cards.add(new SetCardInfo("Su-Chi Cave Guard", 249, Rarity.UNCOMMON, mage.cards.s.SuChiCaveGuard.class)); cards.add(new SetCardInfo("Supply Drop", 250, Rarity.COMMON, mage.cards.s.SupplyDrop.class)); cards.add(new SetCardInfo("Surge Engine", 81, Rarity.MYTHIC, mage.cards.s.SurgeEngine.class));