From 5de30305074749b85e92a81850594f12e285bd5c Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Fri, 4 Nov 2022 19:37:13 -0500 Subject: [PATCH] [BRO] Implemented Conscripted Infantry --- .../src/mage/cards/c/ConscriptedInfantry.java | 39 +++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + 2 files changed, 40 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/c/ConscriptedInfantry.java diff --git a/Mage.Sets/src/mage/cards/c/ConscriptedInfantry.java b/Mage.Sets/src/mage/cards/c/ConscriptedInfantry.java new file mode 100644 index 00000000000..3821784aaf7 --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/ConscriptedInfantry.java @@ -0,0 +1,39 @@ +package mage.cards.c; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.common.DiesSourceTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.constants.SubType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.SoldierArtifactToken; + +/** + * + * @author weirddan455 + */ +public final class ConscriptedInfantry extends CardImpl { + + public ConscriptedInfantry(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.SOLDIER); + this.power = new MageInt(3); + this.toughness = new MageInt(1); + + // When Conscripted Infantry dies, create a 1/1 colorless Soldier artifact creature token. + this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new SoldierArtifactToken()))); + } + + private ConscriptedInfantry(final ConscriptedInfantry card) { + super(card); + } + + @Override + public ConscriptedInfantry copy() { + return new ConscriptedInfantry(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index d71462d52d4..06b4968b5fd 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -55,6 +55,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Clay Revenant", 118, Rarity.COMMON, mage.cards.c.ClayRevenant.class)); cards.add(new SetCardInfo("Combat Courier", 77, Rarity.COMMON, mage.cards.c.CombatCourier.class)); cards.add(new SetCardInfo("Combat Thresher", 35, Rarity.UNCOMMON, mage.cards.c.CombatThresher.class)); + cards.add(new SetCardInfo("Conscripted Infantry", 129, Rarity.COMMON, mage.cards.c.ConscriptedInfantry.class)); cards.add(new SetCardInfo("Corrupt", 88, Rarity.UNCOMMON, mage.cards.c.Corrupt.class)); cards.add(new SetCardInfo("Curate", 44, Rarity.COMMON, mage.cards.c.Curate.class)); cards.add(new SetCardInfo("Defabricate", 45, Rarity.UNCOMMON, mage.cards.d.Defabricate.class));