From 1f79fc4c2adcae747017ab33cb3dd1b2ef2b58e7 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Tue, 24 Jan 2023 21:44:01 -0500 Subject: [PATCH] [ONE] Implement The Hunter Maze --- Mage.Sets/src/mage/cards/t/TheHunterMaze.java | 51 +++++++++++++++++++ .../src/mage/sets/PhyrexiaAllWillBeOne.java | 1 + Utils/mtg-cards-data.txt | 2 +- 3 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 Mage.Sets/src/mage/cards/t/TheHunterMaze.java diff --git a/Mage.Sets/src/mage/cards/t/TheHunterMaze.java b/Mage.Sets/src/mage/cards/t/TheHunterMaze.java new file mode 100644 index 0000000000..108c393fe2 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TheHunterMaze.java @@ -0,0 +1,51 @@ +package mage.cards.t; + +import java.util.UUID; + +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTappedAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.mana.GreenManaAbility; +import mage.constants.SubType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +/** + * @author TheElk801 + */ +public final class TheHunterMaze extends CardImpl { + + public TheHunterMaze(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); + + this.subtype.add(SubType.SPHERE); + + // The Hunter Maze enters the battlefield tapped. + this.addAbility(new EntersBattlefieldTappedAbility()); + + // {T}: Add {G}. + this.addAbility(new GreenManaAbility()); + + // {1}{G}, {T}, Sacrifice The Hunter Maze: Draw a card. + Ability ability = new SimpleActivatedAbility( + new DrawCardSourceControllerEffect(1), new ManaCostsImpl<>("{1}{G}") + ); + ability.addCost(new TapSourceCost()); + ability.addCost(new SacrificeSourceCost()); + this.addAbility(ability); + } + + private TheHunterMaze(final TheHunterMaze card) { + super(card); + } + + @Override + public TheHunterMaze copy() { + return new TheHunterMaze(this); + } +} diff --git a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java index 0a9fd89587..3fe321cf8d 100644 --- a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java +++ b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java @@ -121,6 +121,7 @@ public final class PhyrexiaAllWillBeOne extends ExpansionSet { cards.add(new SetCardInfo("The Dross Pits", 251, Rarity.COMMON, mage.cards.t.TheDrossPits.class)); cards.add(new SetCardInfo("The Fair Basilica", 252, Rarity.COMMON, mage.cards.t.TheFairBasilica.class)); cards.add(new SetCardInfo("The Filigree Sylex", 227, Rarity.RARE, mage.cards.t.TheFiligreeSylex.class)); + cards.add(new SetCardInfo("The Hunter Maze", 253, Rarity.COMMON, mage.cards.t.TheHunterMaze.class)); cards.add(new SetCardInfo("The Monumental Facade", 255, Rarity.RARE, mage.cards.t.TheMonumentalFacade.class)); cards.add(new SetCardInfo("The Seedcore", 259, Rarity.RARE, mage.cards.t.TheSeedcore.class)); cards.add(new SetCardInfo("The Surgical Bay", 260, Rarity.COMMON, mage.cards.t.TheSurgicalBay.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 701308d634..d4d82dec79 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -47810,7 +47810,7 @@ Blackcleave Cliffs|Phyrexia: All Will Be One|248|R||Land|||Blackcleave Cliffs en Copperline Gorge|Phyrexia: All Will Be One|249|R||Land|||Copperline Gorge enters the battlefield tapped unless you control two or fewer other lands.${T}: Add {R} or {G}.| The Dross Pits|Phyrexia: All Will Be One|251|C||Land - Sphere|||The Dross Pits enters the battlefield tapped.${T}: Add {B}.${1}{B}, {T}, Sacrifice The Dross Pits: Draw a card.| The Fair Basilica|Phyrexia: All Will Be One|252|C||Land - Sphere|||The Fair Basilica enters the battlefield tapped.${T}: Add {W}.${1}{W}, {T}, Sacrifice The Fair Basilica: Draw a card.| -The Hunter's Maze|Phyrexia: All Will Be One|253|C||Land - Sphere|||The Hunter's Maze enters the battlefield tapped.${T}: Add {R}.${1}{R}, {T}, Sacrifice The Hunter's Maze: Draw a card.| +The Hunter Maze|Phyrexia: All Will Be One|253|C||Land - Sphere|||The Hunter Maze enters the battlefield tapped.${T}: Add {G}.${1}{G}, {T}, Sacrifice The Hunter Maze: Draw a card.| Mirrex|Phyrexia: All Will Be One|254|R||Land - Sphere|||{T}: Add {C}.${T}: Add one mana of any color. Activate only if Mirrex entered the battlefield this turn.${3}, {T}: Create a 1/1 colorless Phyrexian Mite artifact creature token with toxic 1 and "This creature can't block."| The Monumental Facade|Phyrexia: All Will Be One|255|R||Land - Sphere|||The Monumental Facade enters the battlefield with two oil counters on it.${T}: Add {C}.${T}, Remove an oil counter from The Monumental Facade: Put an oil counter on target artifact or creature you control. Activate only as a sorcery.| The Mycosynth Gardens|Phyrexia: All Will Be One|256|R||Land - Sphere|||{T}: Add {C}.${1}, {T}: Add one mana of any color.${X}, {T}: The Mycosynth Gardens becomes a copy of target nontoken artifact you control with mana value X.|