From f65d18c0a650b286da9c817f779b448e507c7703 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 6 Sep 2021 20:32:24 -0400 Subject: [PATCH] [MID] Implemented Defend the Celestus --- .../src/mage/cards/d/DefendTheCelestus.java | 39 +++++++++++++++++++ .../src/mage/sets/InnistradMidnightHunt.java | 1 + 2 files changed, 40 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/d/DefendTheCelestus.java diff --git a/Mage.Sets/src/mage/cards/d/DefendTheCelestus.java b/Mage.Sets/src/mage/cards/d/DefendTheCelestus.java new file mode 100644 index 0000000000..6aaf9f372a --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DefendTheCelestus.java @@ -0,0 +1,39 @@ +package mage.cards.d; + +import mage.abilities.effects.common.counter.DistributeCountersEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.counters.CounterType; +import mage.filter.StaticFilters; +import mage.target.common.TargetCreaturePermanentAmount; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class DefendTheCelestus extends CardImpl { + + public DefendTheCelestus(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{G}{G}"); + + // Distribute three +1/+1 counters among one, two, or three target creatures you control. + this.getSpellAbility().addEffect(new DistributeCountersEffect( + CounterType.P1P1, 3, false, + "one, two, or three target creatures you control" + )); + this.getSpellAbility().addTarget(new TargetCreaturePermanentAmount( + 3, StaticFilters.FILTER_CONTROLLED_CREATURES + )); + } + + private DefendTheCelestus(final DefendTheCelestus card) { + super(card); + } + + @Override + public DefendTheCelestus copy() { + return new DefendTheCelestus(this); + } +} diff --git a/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java b/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java index cce260f8f5..350fe30b82 100644 --- a/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java +++ b/Mage.Sets/src/mage/sets/InnistradMidnightHunt.java @@ -43,6 +43,7 @@ public final class InnistradMidnightHunt extends ExpansionSet { cards.add(new SetCardInfo("Consider", 44, Rarity.COMMON, mage.cards.c.Consider.class)); cards.add(new SetCardInfo("Contortionist Troupe", 178, Rarity.UNCOMMON, mage.cards.c.ContortionistTroupe.class)); cards.add(new SetCardInfo("Dawnhart Rejuvenator", 180, Rarity.COMMON, mage.cards.d.DawnhartRejuvenator.class)); + cards.add(new SetCardInfo("Defend the Celestus", 182, Rarity.UNCOMMON, mage.cards.d.DefendTheCelestus.class)); cards.add(new SetCardInfo("Defenestrate", 95, Rarity.COMMON, mage.cards.d.Defenestrate.class)); cards.add(new SetCardInfo("Deserted Beach", 260, Rarity.RARE, mage.cards.d.DesertedBeach.class)); cards.add(new SetCardInfo("Dire-Strain Demolisher", 174, Rarity.UNCOMMON, mage.cards.d.DireStrainDemolisher.class));