From 9787b968d620b3dc971d9ebe1b3c58b36d6c628a Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 2 Nov 2022 08:53:01 -0400 Subject: [PATCH] [BRO] Implement Autonomous Assembler --- .../src/mage/cards/a/AutonomousAssembler.java | 59 +++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + 2 files changed, 60 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AutonomousAssembler.java diff --git a/Mage.Sets/src/mage/cards/a/AutonomousAssembler.java b/Mage.Sets/src/mage/cards/a/AutonomousAssembler.java new file mode 100644 index 00000000000..65ddbd403b1 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AutonomousAssembler.java @@ -0,0 +1,59 @@ +package mage.cards.a; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.common.counter.AddCountersTargetEffect; +import mage.abilities.keyword.PrototypeAbility; +import mage.abilities.keyword.VigilanceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.counters.CounterType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledPermanent; +import mage.target.TargetPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class AutonomousAssembler extends CardImpl { + + private static final FilterPermanent filter = new FilterControlledPermanent(SubType.ASSEMBLY_WORKER); + + public AutonomousAssembler(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{5}"); + + this.subtype.add(SubType.ASSEMBLY_WORKER); + this.power = new MageInt(4); + this.toughness = new MageInt(5); + + // Prototype {1}{W} -- 2/2 + this.addAbility(new PrototypeAbility(this, "{1}{W}", 2, 2)); + + // Vigilance + this.addAbility(VigilanceAbility.getInstance()); + + // {1}, {T}: Put a +1/+1 counter on target Assembly-Worker you control. + Ability ability = new SimpleActivatedAbility( + new AddCountersTargetEffect(CounterType.P1P1.createInstance()), new GenericManaCost(1) + ); + ability.addCost(new TapSourceCost()); + ability.addTarget(new TargetPermanent(filter)); + this.addAbility(ability); + } + + private AutonomousAssembler(final AutonomousAssembler card) { + super(card); + } + + @Override + public AutonomousAssembler copy() { + return new AutonomousAssembler(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index 5574953e655..90faec5d789 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -32,6 +32,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Argothian Opportunist", 167, Rarity.COMMON, mage.cards.a.ArgothianOpportunist.class)); cards.add(new SetCardInfo("Ashnod's Harvester", 117, Rarity.UNCOMMON, mage.cards.a.AshnodsHarvester.class)); cards.add(new SetCardInfo("Audacity", 169, Rarity.UNCOMMON, mage.cards.a.Audacity.class)); + cards.add(new SetCardInfo("Autonomous Assembler", 34, Rarity.RARE, mage.cards.a.AutonomousAssembler.class)); cards.add(new SetCardInfo("Battlefield Forge", 257, Rarity.RARE, mage.cards.b.BattlefieldForge.class)); cards.add(new SetCardInfo("Bitter Reunion", 127, Rarity.COMMON, mage.cards.b.BitterReunion.class)); cards.add(new SetCardInfo("Blanchwood Armor", 171, Rarity.UNCOMMON, mage.cards.b.BlanchwoodArmor.class));