From 5afeb5969ff15eee5aa7faa55dccc8788b81f5c2 Mon Sep 17 00:00:00 2001 From: Cameron Merkel <44722506+Cguy7777@users.noreply.github.com> Date: Thu, 14 Mar 2024 19:17:58 -0500 Subject: [PATCH] [PIP] Implement Automated Assembly Line (#11939) --- .../mage/cards/a/AutomatedAssemblyLine.java | 42 +++++++++++++++++++ Mage.Sets/src/mage/sets/Fallout.java | 4 ++ 2 files changed, 46 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AutomatedAssemblyLine.java diff --git a/Mage.Sets/src/mage/cards/a/AutomatedAssemblyLine.java b/Mage.Sets/src/mage/cards/a/AutomatedAssemblyLine.java new file mode 100644 index 00000000000..6d7d037d2e9 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AutomatedAssemblyLine.java @@ -0,0 +1,42 @@ +package mage.cards.a; + +import java.util.UUID; + +import mage.abilities.common.DealCombatDamageControlledTriggeredAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.PayEnergyCost; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.counter.GetEnergyCountersControllerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; +import mage.game.permanent.token.RobotToken; + +/** + * @author Cguy7777 + */ +public final class AutomatedAssemblyLine extends CardImpl { + + public AutomatedAssemblyLine(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}{W}"); + + // Whenever one or more artifact creatures you control deal combat damage to a player, you get {E}. + this.addAbility(new DealCombatDamageControlledTriggeredAbility( + new GetEnergyCountersControllerEffect(1), StaticFilters.FILTER_PERMANENTS_ARTIFACT_CREATURE)); + + // Pay {E}{E}{E}: Create a tapped 3/3 colorless Robot artifact creature token. + this.addAbility(new SimpleActivatedAbility( + new CreateTokenEffect(new RobotToken(), 1, true), + new PayEnergyCost(3))); + } + + private AutomatedAssemblyLine(final AutomatedAssemblyLine card) { + super(card); + } + + @Override + public AutomatedAssemblyLine copy() { + return new AutomatedAssemblyLine(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Fallout.java b/Mage.Sets/src/mage/sets/Fallout.java index fac7dd86344..ea82ea722e3 100644 --- a/Mage.Sets/src/mage/sets/Fallout.java +++ b/Mage.Sets/src/mage/sets/Fallout.java @@ -34,6 +34,10 @@ public final class Fallout extends ExpansionSet { cards.add(new SetCardInfo("Assemble the Legion", 210, Rarity.RARE, mage.cards.a.AssembleTheLegion.class)); cards.add(new SetCardInfo("Atomize", 94, Rarity.RARE, mage.cards.a.Atomize.class)); cards.add(new SetCardInfo("Austere Command", 156, Rarity.RARE, mage.cards.a.AustereCommand.class)); + cards.add(new SetCardInfo("Automated Assembly Line", 10, Rarity.RARE, mage.cards.a.AutomatedAssemblyLine.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Automated Assembly Line", 363, Rarity.RARE, mage.cards.a.AutomatedAssemblyLine.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Automated Assembly Line", 538, Rarity.RARE, mage.cards.a.AutomatedAssemblyLine.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Automated Assembly Line", 891, Rarity.RARE, mage.cards.a.AutomatedAssemblyLine.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Ayula, Queen Among Bears", 348, Rarity.RARE, mage.cards.a.AyulaQueenAmongBears.class)); cards.add(new SetCardInfo("Basilisk Collar", 225, Rarity.RARE, mage.cards.b.BasiliskCollar.class)); cards.add(new SetCardInfo("Bastion of Remembrance", 182, Rarity.UNCOMMON, mage.cards.b.BastionOfRemembrance.class));