From 0b49da602e38aa7fe474bd270d6ac8a40d4568c7 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 8 Jan 2021 09:00:44 -0500 Subject: [PATCH] [KHM] Implemented Alrund's Epiphany --- .../src/mage/cards/a/AlrundsEpiphany.java | 39 +++++++++++++++++++ Mage.Sets/src/mage/sets/Kaldheim.java | 1 + 2 files changed, 40 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AlrundsEpiphany.java diff --git a/Mage.Sets/src/mage/cards/a/AlrundsEpiphany.java b/Mage.Sets/src/mage/cards/a/AlrundsEpiphany.java new file mode 100644 index 0000000000..37ad9ab5bc --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AlrundsEpiphany.java @@ -0,0 +1,39 @@ +package mage.cards.a; + +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.ExileSpellEffect; +import mage.abilities.effects.common.turn.AddExtraTurnControllerEffect; +import mage.abilities.keyword.ForetellAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.OwlToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class AlrundsEpiphany extends CardImpl { + + public AlrundsEpiphany(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{5}{U}{U}"); + + // Create two 1/1 blue Bird creature tokens with flying. Take an extra turn after this one. Exile Alrund's Epiphany. + this.getSpellAbility().addEffect(new CreateTokenEffect(new OwlToken())); + this.getSpellAbility().addEffect(new AddExtraTurnControllerEffect()); + this.getSpellAbility().addEffect(ExileSpellEffect.getInstance()); + + // Foretell {4}{U}{U} + this.addAbility(new ForetellAbility(this, "{4}{U}{U}")); + } + + private AlrundsEpiphany(final AlrundsEpiphany card) { + super(card); + } + + @Override + public AlrundsEpiphany copy() { + return new AlrundsEpiphany(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Kaldheim.java b/Mage.Sets/src/mage/sets/Kaldheim.java index b3bbaa17f4..a2bcc6d472 100644 --- a/Mage.Sets/src/mage/sets/Kaldheim.java +++ b/Mage.Sets/src/mage/sets/Kaldheim.java @@ -41,6 +41,7 @@ public final class Kaldheim extends ExpansionSet { cards.add(new SetCardInfo("Absorb Identity", 383, Rarity.UNCOMMON, mage.cards.a.AbsorbIdentity.class)); cards.add(new SetCardInfo("Alpine Meadow", 248, Rarity.COMMON, mage.cards.a.AlpineMeadow.class)); + cards.add(new SetCardInfo("Alrund's Epiphany", 41, Rarity.MYTHIC, mage.cards.a.AlrundsEpiphany.class)); cards.add(new SetCardInfo("Arctic Treeline", 249, Rarity.COMMON, mage.cards.a.ArcticTreeline.class)); cards.add(new SetCardInfo("Armed and Armored", 379, Rarity.UNCOMMON, mage.cards.a.ArmedAndArmored.class)); cards.add(new SetCardInfo("Augury Raven", 44, Rarity.COMMON, mage.cards.a.AuguryRaven.class));