From acf140193fd509404de4c7db31f7178704a9c570 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 28 Oct 2022 08:20:17 -0400 Subject: [PATCH] [BRO] Implemented Scrapwork Cohort --- .../src/mage/cards/s/ScrapworkCohort.java | 43 +++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + 2 files changed, 44 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/ScrapworkCohort.java diff --git a/Mage.Sets/src/mage/cards/s/ScrapworkCohort.java b/Mage.Sets/src/mage/cards/s/ScrapworkCohort.java new file mode 100644 index 0000000000..5ef5107f59 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/ScrapworkCohort.java @@ -0,0 +1,43 @@ +package mage.cards.s; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.keyword.UnearthAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.game.permanent.token.SoldierArtifactToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ScrapworkCohort extends CardImpl { + + public ScrapworkCohort(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{4}"); + + this.subtype.add(SubType.SOLDIER); + this.power = new MageInt(3); + this.toughness = new MageInt(1); + + // When Scrapwork Cohort enters the battlefield, create a 1/1 colorless Soldier artifact creature token. + this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new SoldierArtifactToken()))); + + // Unearth {2}{W} + this.addAbility(new UnearthAbility(new ManaCostsImpl<>("{2}{W}"))); + } + + private ScrapworkCohort(final ScrapworkCohort card) { + super(card); + } + + @Override + public ScrapworkCohort copy() { + return new ScrapworkCohort(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index 81b073705d..ec5afb7ae1 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -35,6 +35,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Plains", 278, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Queen Kayla bin-Kroog", 218, Rarity.RARE, mage.cards.q.QueenKaylaBinKroog.class)); cards.add(new SetCardInfo("Recruitment Officer", 23, Rarity.UNCOMMON, mage.cards.r.RecruitmentOfficer.class)); + cards.add(new SetCardInfo("Scrapwork Cohort", 37, Rarity.COMMON, mage.cards.s.ScrapworkCohort.class)); cards.add(new SetCardInfo("Surge Engine", 81, Rarity.MYTHIC, mage.cards.s.SurgeEngine.class)); cards.add(new SetCardInfo("Swamp", 282, Rarity.LAND, mage.cards.basiclands.Swamp.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("The Mightstone and Weakstone", "238a", Rarity.RARE, mage.cards.t.TheMightstoneAndWeakstone.class));