From 69661152208bcf5103e03cfb4ef707b2ac757742 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Fri, 31 Jan 2025 18:33:48 -0500 Subject: [PATCH] [DFT] Implement Hazard of the Dunes --- .../src/mage/cards/h/HazardOfTheDunes.java | 49 +++++++++++++++++++ Mage.Sets/src/mage/sets/Aetherdrift.java | 1 + 2 files changed, 50 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/h/HazardOfTheDunes.java diff --git a/Mage.Sets/src/mage/cards/h/HazardOfTheDunes.java b/Mage.Sets/src/mage/cards/h/HazardOfTheDunes.java new file mode 100644 index 00000000000..846de1ce3e0 --- /dev/null +++ b/Mage.Sets/src/mage/cards/h/HazardOfTheDunes.java @@ -0,0 +1,49 @@ +package mage.cards.h; + +import mage.MageInt; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.abilities.keyword.ExhaustAbility; +import mage.abilities.keyword.ReachAbility; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.counters.CounterType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class HazardOfTheDunes extends CardImpl { + + public HazardOfTheDunes(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}"); + + this.subtype.add(SubType.WURM); + this.power = new MageInt(4); + this.toughness = new MageInt(4); + + // Trample + this.addAbility(TrampleAbility.getInstance()); + + // Reach + this.addAbility(ReachAbility.getInstance()); + + // Exhaust -- {6}{G}: Put three +1/+1 counters on this creature. + this.addAbility(new ExhaustAbility( + new AddCountersSourceEffect(CounterType.P1P1.createInstance(3)), new ManaCostsImpl<>("{6}{G}") + )); + } + + private HazardOfTheDunes(final HazardOfTheDunes card) { + super(card); + } + + @Override + public HazardOfTheDunes copy() { + return new HazardOfTheDunes(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Aetherdrift.java b/Mage.Sets/src/mage/sets/Aetherdrift.java index eb5d154ae37..9a03c6a9b82 100644 --- a/Mage.Sets/src/mage/sets/Aetherdrift.java +++ b/Mage.Sets/src/mage/sets/Aetherdrift.java @@ -92,6 +92,7 @@ public final class Aetherdrift extends ExpansionSet { cards.add(new SetCardInfo("Guardian Sunmare", 15, Rarity.RARE, mage.cards.g.GuardianSunmare.class)); cards.add(new SetCardInfo("Guidelight Pathmaker", 206, Rarity.UNCOMMON, mage.cards.g.GuidelightPathmaker.class)); cards.add(new SetCardInfo("Haunted Hellride", 208, Rarity.UNCOMMON, mage.cards.h.HauntedHellride.class)); + cards.add(new SetCardInfo("Hazard of the Dunes", 165, Rarity.COMMON, mage.cards.h.HazardOfTheDunes.class)); cards.add(new SetCardInfo("Hazoret, Godseeker", 133, Rarity.MYTHIC, mage.cards.h.HazoretGodseeker.class)); cards.add(new SetCardInfo("Howler's Heavy", 46, Rarity.COMMON, mage.cards.h.HowlersHeavy.class)); cards.add(new SetCardInfo("Hulldrifter", 47, Rarity.COMMON, mage.cards.h.Hulldrifter.class));