diff --git a/Mage.Sets/src/mage/cards/p/PatchworkAutomaton.java b/Mage.Sets/src/mage/cards/p/PatchworkAutomaton.java new file mode 100644 index 00000000000..cdec5818298 --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/PatchworkAutomaton.java @@ -0,0 +1,49 @@ +package mage.cards.p; + +import mage.MageInt; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.abilities.keyword.WardAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.counters.CounterType; +import mage.filter.FilterSpell; +import mage.filter.common.FilterArtifactSpell; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class PatchworkAutomaton extends CardImpl { + + private static final FilterSpell filter = new FilterArtifactSpell("an artifact spell"); + + public PatchworkAutomaton(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{2}"); + + this.subtype.add(SubType.CONSTRUCT); + this.power = new MageInt(1); + this.toughness = new MageInt(1); + + // Ward {2} + this.addAbility(new WardAbility(new ManaCostsImpl<>("{2}"))); + + // Whenever you cast an artifact spell, put a +1/+1 counter on Patchwork Automaton. + this.addAbility(new SpellCastControllerTriggeredAbility( + new AddCountersSourceEffect(CounterType.P1P1.createInstance()), filter, false + )); + } + + private PatchworkAutomaton(final PatchworkAutomaton card) { + super(card); + } + + @Override + public PatchworkAutomaton copy() { + return new PatchworkAutomaton(this); + } +} diff --git a/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java b/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java index 8faa597d355..bda0eb69e2c 100644 --- a/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java +++ b/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java @@ -152,6 +152,7 @@ public final class KamigawaNeonDynasty extends ExpansionSet { cards.add(new SetCardInfo("Oni-Cult Anvil", 230, Rarity.UNCOMMON, mage.cards.o.OniCultAnvil.class)); cards.add(new SetCardInfo("Otawara, Soaring City", 271, Rarity.RARE, mage.cards.o.OtawaraSoaringCity.class)); cards.add(new SetCardInfo("Papercraft Decoy", 253, Rarity.COMMON, mage.cards.p.PapercraftDecoy.class)); + cards.add(new SetCardInfo("Patchwork Automaton", 254, Rarity.UNCOMMON, mage.cards.p.PatchworkAutomaton.class)); cards.add(new SetCardInfo("Plains", 283, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Portrait of Michiko", 29, Rarity.UNCOMMON, mage.cards.p.PortraitOfMichiko.class)); cards.add(new SetCardInfo("Prodigy's Prototype", 231, Rarity.UNCOMMON, mage.cards.p.ProdigysPrototype.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 982817837fb..fcbc117a02b 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -43781,7 +43781,7 @@ Mirror Box|Kamigawa: Neon Dynasty|250|R|{3}|Artifact|||The "legend rule" doesn't Network Terminal|Kamigawa: Neon Dynasty|251|C|{3}|Artifact|||{T}: Add one mana of any color.${1}, {T}, Tap another untapped artifact you control: Draw a card, then discard a card.| Ninja's Kunai|Kamigawa: Neon Dynasty|252|C|{1}|Artifact - Equipment|||Equipped creature has "{1}, {T}, Sacrifice Ninja's Kunai: Ninja's Kunai deals 3 damage to any target."$Equip {1}| Papercraft Decoy|Kamigawa: Neon Dynasty|253|C|{2}|Artifact Creature - Frog|2|1|When Papercraft Decoy leaves the battlefield, you may pay {2}. If you do, draw a card.| -Patchwork Automation|Kamigawa: Neon Dynasty|254|U|{2}|Artifact Creature - Construct|1|1|Ward {2}$Whenever you cast an artifact spell, put a +1/+1 counter on Patchwork Automation.| +Patchwork Automaton|Kamigawa: Neon Dynasty|254|U|{2}|Artifact Creature - Construct|1|1|Ward {2}$Whenever you cast an artifact spell, put a +1/+1 counter on Patchwork Automaton.| Reckoner Bankbuster|Kamigawa: Neon Dynasty|255|R|{2}|Artifact - Vehicle|4|4|Reckoner Bankbuster enters the battlefield with three charge counters on it.${2}, {T}, Remove a charge counter from Reckoner Bankbuster: Draw a card. Then if there are no charge counters on Reckoner Bankbuster, create a Treasure token and a 1/1 colorless Pilot creature token with "This creature crews Vehicles as though its power were 2 greater."$Crew 3| Reito Sentinel|Kamigawa: Neon Dynasty|256|U|{3}|Artifact Creature - Construct|3|3|Defender$When Reito Sentinel enters the battlefield, target player mills three cards.${3}: Put target card from a graveyard on the bottom of its owner's library.| Runaway Trash-Bot|Kamigawa: Neon Dynasty|257|U|{3}|Artifact Creature - Construct|0|4|Trample$Runaway Trash-Bot gets +1/+0 for each artifact and/or enchantment card in your graveyard.|