[PIP] Implement Automated Assembly Line (#11939)

This commit is contained in:
Cameron Merkel 2024-03-14 19:17:58 -05:00 committed by GitHub
parent ad0cc35167
commit 5afeb5969f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 46 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));