From 5f7bb6ed9f4ad994da256dd3c7eb4a5d6a6d0dbb Mon Sep 17 00:00:00 2001 From: theelk801 Date: Thu, 10 Apr 2025 15:51:43 -0400 Subject: [PATCH] [TDC] Implement Zenith Festival --- .../src/mage/cards/z/ZenithFestival.java | 38 +++++++++++++++++++ .../mage/sets/TarkirDragonstormCommander.java | 1 + 2 files changed, 39 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/z/ZenithFestival.java diff --git a/Mage.Sets/src/mage/cards/z/ZenithFestival.java b/Mage.Sets/src/mage/cards/z/ZenithFestival.java new file mode 100644 index 00000000000..f37ef6e10e0 --- /dev/null +++ b/Mage.Sets/src/mage/cards/z/ZenithFestival.java @@ -0,0 +1,38 @@ +package mage.cards.z; + +import mage.abilities.dynamicvalue.common.GetXValue; +import mage.abilities.effects.common.ExileTopXMayPlayUntilEffect; +import mage.abilities.keyword.HarmonizeAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ZenithFestival extends CardImpl { + + public ZenithFestival(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{R}{R}"); + + // Exile the top X cards of your library. You may play them until the end of your next turn. + this.getSpellAbility().addEffect(new ExileTopXMayPlayUntilEffect( + GetXValue.instance, false, Duration.UntilEndOfYourNextTurn + )); + + // Harmonize {X}{R}{R} + this.addAbility(new HarmonizeAbility(this, "{X}{R}{R}")); + } + + private ZenithFestival(final ZenithFestival card) { + super(card); + } + + @Override + public ZenithFestival copy() { + return new ZenithFestival(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TarkirDragonstormCommander.java b/Mage.Sets/src/mage/sets/TarkirDragonstormCommander.java index 272086c8bb5..9f08ccccef7 100644 --- a/Mage.Sets/src/mage/sets/TarkirDragonstormCommander.java +++ b/Mage.Sets/src/mage/sets/TarkirDragonstormCommander.java @@ -368,6 +368,7 @@ public final class TarkirDragonstormCommander extends ExpansionSet { cards.add(new SetCardInfo("Yahenni, Undying Partisan", 202, Rarity.RARE, mage.cards.y.YahenniUndyingPartisan.class)); cards.add(new SetCardInfo("Yavimaya Coast", 413, Rarity.RARE, mage.cards.y.YavimayaCoast.class)); cards.add(new SetCardInfo("Young Pyromancer", 95, Rarity.UNCOMMON, mage.cards.y.YoungPyromancer.class)); + cards.add(new SetCardInfo("Zenith Festival", 41, Rarity.RARE, mage.cards.z.ZenithFestival.class)); cards.add(new SetCardInfo("Zetalpa, Primal Dawn", 142, Rarity.RARE, mage.cards.z.ZetalpaPrimalDawn.class)); } }