From 69c46e65a9b733b5bd6337b87322611857024cf6 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Tue, 28 Jan 2025 18:02:40 -0500 Subject: [PATCH] [DFT] Implement Greenbelt Guardian --- .../src/mage/cards/g/GreenbeltGuardian.java | 54 +++++++++++++++++++ Mage.Sets/src/mage/sets/Aetherdrift.java | 1 + 2 files changed, 55 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/g/GreenbeltGuardian.java diff --git a/Mage.Sets/src/mage/cards/g/GreenbeltGuardian.java b/Mage.Sets/src/mage/cards/g/GreenbeltGuardian.java new file mode 100644 index 00000000000..f00077baafa --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GreenbeltGuardian.java @@ -0,0 +1,54 @@ +package mage.cards.g; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.abilities.keyword.ExhaustAbility; +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 mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class GreenbeltGuardian extends CardImpl { + + public GreenbeltGuardian(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}"); + + this.subtype.add(SubType.ELF); + this.subtype.add(SubType.RANGER); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // {G}: Target creature gains trample until end of turn. + Ability ability = new SimpleActivatedAbility( + new GainAbilityTargetEffect(TrampleAbility.getInstance()), new ManaCostsImpl<>("{G}") + ); + ability.addTarget(new TargetCreaturePermanent()); + this.addAbility(ability); + + // Exhaust -- {3}{G}: Put three +1/+1 counters on this creature. + this.addAbility(new ExhaustAbility( + new AddCountersSourceEffect(CounterType.P1P1.createInstance()), new ManaCostsImpl<>("{3}{G}") + )); + } + + private GreenbeltGuardian(final GreenbeltGuardian card) { + super(card); + } + + @Override + public GreenbeltGuardian copy() { + return new GreenbeltGuardian(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Aetherdrift.java b/Mage.Sets/src/mage/sets/Aetherdrift.java index 207908aa53e..030d30aa90a 100644 --- a/Mage.Sets/src/mage/sets/Aetherdrift.java +++ b/Mage.Sets/src/mage/sets/Aetherdrift.java @@ -72,6 +72,7 @@ public final class Aetherdrift extends ExpansionSet { cards.add(new SetCardInfo("Gilded Ghoda", 130, Rarity.COMMON, mage.cards.g.GildedGhoda.class)); cards.add(new SetCardInfo("Gloryheath Lynx", 14, Rarity.UNCOMMON, mage.cards.g.GloryheathLynx.class)); cards.add(new SetCardInfo("Greasewrench Goblin", 132, Rarity.UNCOMMON, mage.cards.g.GreasewrenchGoblin.class)); + cards.add(new SetCardInfo("Greenbelt Guardian", 164, Rarity.UNCOMMON, mage.cards.g.GreenbeltGuardian.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("Hazoret, Godseeker", 133, Rarity.MYTHIC, mage.cards.h.HazoretGodseeker.class));