From 544c8b3b31c19f1b783611b1ae2f2de8d48ad5a0 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 5 Feb 2022 23:25:24 -0500 Subject: [PATCH] [NEO] Implemented Experimental Synthesizer --- .../mage/cards/e/ExperimentalSynthesizer.java | 46 +++++++++++++++++++ .../src/mage/sets/KamigawaNeonDynasty.java | 1 + 2 files changed, 47 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/e/ExperimentalSynthesizer.java diff --git a/Mage.Sets/src/mage/cards/e/ExperimentalSynthesizer.java b/Mage.Sets/src/mage/cards/e/ExperimentalSynthesizer.java new file mode 100644 index 0000000000..b2a594ab4b --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/ExperimentalSynthesizer.java @@ -0,0 +1,46 @@ +package mage.cards.e; + +import mage.abilities.Ability; +import mage.abilities.common.ActivateAsSorceryActivatedAbility; +import mage.abilities.common.EntersBattlefieldOrLeavesSourceTriggeredAbility; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.ExileTopXMayPlayUntilEndOfTurnEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.SamuraiToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ExperimentalSynthesizer extends CardImpl { + + public ExperimentalSynthesizer(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{R}"); + + // When Experimental Synthesizer enters or leaves the battlefield, exile the top card of your library. Until end of turn, you may play that card. + this.addAbility(new EntersBattlefieldOrLeavesSourceTriggeredAbility( + new ExileTopXMayPlayUntilEndOfTurnEffect(1), false + )); + + // {2}{R}, Sacrifice Experimental Synthesizer: Create a 2/2 white Samurai creature token with vigilance. Activate only as a sorcery. + Ability ability = new ActivateAsSorceryActivatedAbility( + new CreateTokenEffect(new SamuraiToken()), new ManaCostsImpl<>("{2}{R}") + ); + ability.addCost(new SacrificeSourceCost()); + this.addAbility(ability); + } + + private ExperimentalSynthesizer(final ExperimentalSynthesizer card) { + super(card); + } + + @Override + public ExperimentalSynthesizer copy() { + return new ExperimentalSynthesizer(this); + } +} diff --git a/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java b/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java index bef65408cf..c288b86a61 100644 --- a/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java +++ b/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java @@ -86,6 +86,7 @@ public final class KamigawaNeonDynasty extends ExpansionSet { cards.add(new SetCardInfo("Enthusiastic Mechanaut", 218, Rarity.UNCOMMON, mage.cards.e.EnthusiasticMechanaut.class)); cards.add(new SetCardInfo("Era of Enlightenment", 11, Rarity.COMMON, mage.cards.e.EraOfEnlightenment.class)); cards.add(new SetCardInfo("Essence Capture", 52, Rarity.UNCOMMON, mage.cards.e.EssenceCapture.class)); + cards.add(new SetCardInfo("Experimental Synthesizer", 138, Rarity.COMMON, mage.cards.e.ExperimentalSynthesizer.class)); cards.add(new SetCardInfo("Explosive Entry", 139, Rarity.COMMON, mage.cards.e.ExplosiveEntry.class)); cards.add(new SetCardInfo("Fade into Antiquity", 182, Rarity.COMMON, mage.cards.f.FadeIntoAntiquity.class)); cards.add(new SetCardInfo("Fang of Shigeki", 183, Rarity.COMMON, mage.cards.f.FangOfShigeki.class));