From bbb13346b6ff6f9e0aecb29bd02457c658149adb Mon Sep 17 00:00:00 2001 From: theelk801 Date: Thu, 6 Apr 2023 09:35:55 -0400 Subject: [PATCH] [MOM] Implement Nezumi Freewheeler / Hideous Fleshwheeler --- .../src/mage/cards/h/HideousFleshwheeler.java | 60 +++++++++++++++++++ .../src/mage/cards/n/NezumiFreewheeler.java | 52 ++++++++++++++++ .../src/mage/sets/MarchOfTheMachine.java | 2 + 3 files changed, 114 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/h/HideousFleshwheeler.java create mode 100644 Mage.Sets/src/mage/cards/n/NezumiFreewheeler.java diff --git a/Mage.Sets/src/mage/cards/h/HideousFleshwheeler.java b/Mage.Sets/src/mage/cards/h/HideousFleshwheeler.java new file mode 100644 index 00000000000..f7b1017e7d3 --- /dev/null +++ b/Mage.Sets/src/mage/cards/h/HideousFleshwheeler.java @@ -0,0 +1,60 @@ +package mage.cards.h; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.TransformIntoSourceTriggeredAbility; +import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect; +import mage.abilities.keyword.MenaceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.ComparisonType; +import mage.constants.SubType; +import mage.filter.FilterCard; +import mage.filter.common.FilterPermanentCard; +import mage.filter.predicate.mageobject.ManaValuePredicate; +import mage.target.common.TargetCardInGraveyard; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class HideousFleshwheeler extends CardImpl { + + private static final FilterCard filter + = new FilterPermanentCard("permanent card with mana value 2 or less from a graveyard"); + + static { + filter.add(new ManaValuePredicate(ComparisonType.FEWER_THAN, 3)); + } + + public HideousFleshwheeler(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, ""); + + this.subtype.add(SubType.PHYREXIAN); + this.subtype.add(SubType.RAT); + this.power = new MageInt(4); + this.toughness = new MageInt(5); + this.color.setWhite(true); + this.color.setBlack(true); + this.nightCard = true; + + // Menace + this.addAbility(new MenaceAbility()); + + // When this creature transforms into Hideous FleshwheelerHideous Fleshwheeler, put target permanent card with mana value 2 or less from a graveyard onto the battlefield under your control. + Ability ability = new TransformIntoSourceTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect()); + ability.addTarget(new TargetCardInGraveyard(filter)); + this.addAbility(ability); + } + + private HideousFleshwheeler(final HideousFleshwheeler card) { + super(card); + } + + @Override + public HideousFleshwheeler copy() { + return new HideousFleshwheeler(this); + } +} diff --git a/Mage.Sets/src/mage/cards/n/NezumiFreewheeler.java b/Mage.Sets/src/mage/cards/n/NezumiFreewheeler.java new file mode 100644 index 00000000000..5c41d0dd0fb --- /dev/null +++ b/Mage.Sets/src/mage/cards/n/NezumiFreewheeler.java @@ -0,0 +1,52 @@ +package mage.cards.n; + +import mage.MageInt; +import mage.abilities.common.ActivateAsSorceryActivatedAbility; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.MillCardsEachPlayerEffect; +import mage.abilities.effects.common.TransformSourceEffect; +import mage.abilities.keyword.MenaceAbility; +import mage.abilities.keyword.TransformAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.TargetController; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class NezumiFreewheeler extends CardImpl { + + public NezumiFreewheeler(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}"); + + this.subtype.add(SubType.RAT); + this.subtype.add(SubType.SAMURAI); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + this.secondSideCardClazz = mage.cards.h.HideousFleshwheeler.class; + + // Menace + this.addAbility(new MenaceAbility()); + + // When Nezumi Freewheeler enters the battlefield, each player mills three cards. + this.addAbility(new EntersBattlefieldTriggeredAbility(new MillCardsEachPlayerEffect(3, TargetController.EACH_PLAYER))); + + // {5}{W/P}: Transform Nezumi Freewheeler. Activate only as a sorcery. + this.addAbility(new TransformAbility()); + this.addAbility(new ActivateAsSorceryActivatedAbility(new TransformSourceEffect(), new ManaCostsImpl<>("{5}{W/P}"))); + } + + private NezumiFreewheeler(final NezumiFreewheeler card) { + super(card); + } + + @Override + public NezumiFreewheeler copy() { + return new NezumiFreewheeler(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java index 0d76f8d63cd..b30f0d631cb 100644 --- a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java +++ b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java @@ -99,6 +99,7 @@ public final class MarchOfTheMachine extends ExpansionSet { cards.add(new SetCardInfo("Heliod, the Radiant Dawn", 17, Rarity.RARE, mage.cards.h.HeliodTheRadiantDawn.class)); cards.add(new SetCardInfo("Heliod, the Warped Eclipse", 17, Rarity.RARE, mage.cards.h.HeliodTheWarpedEclipse.class)); cards.add(new SetCardInfo("Herbology Instructor", 189, Rarity.UNCOMMON, mage.cards.h.HerbologyInstructor.class)); + cards.add(new SetCardInfo("Hideous Fleshwheeler", 119, Rarity.UNCOMMON, mage.cards.h.HideousFleshwheeler.class)); cards.add(new SetCardInfo("Ichor Drinker", 111, Rarity.COMMON, mage.cards.i.IchorDrinker.class)); cards.add(new SetCardInfo("Infected Defector", 18, Rarity.COMMON, mage.cards.i.InfectedDefector.class)); cards.add(new SetCardInfo("Injector Crocodile", 329, Rarity.COMMON, mage.cards.i.InjectorCrocodile.class)); @@ -129,6 +130,7 @@ public final class MarchOfTheMachine extends ExpansionSet { cards.add(new SetCardInfo("Mountain", 280, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Mutagen Connoisseur", 248, Rarity.UNCOMMON, mage.cards.m.MutagenConnoisseur.class)); cards.add(new SetCardInfo("Negate", 68, Rarity.COMMON, mage.cards.n.Negate.class)); + cards.add(new SetCardInfo("Nezumi Freewheeler", 119, Rarity.UNCOMMON, mage.cards.n.NezumiFreewheeler.class)); cards.add(new SetCardInfo("Nezumi Informant", 120, Rarity.COMMON, mage.cards.n.NezumiInformant.class)); cards.add(new SetCardInfo("Norn's Inquisitor", 29, Rarity.UNCOMMON, mage.cards.n.NornsInquisitor.class)); cards.add(new SetCardInfo("Omen Hawker", 70, Rarity.UNCOMMON, mage.cards.o.OmenHawker.class));