From cd67efeae6c2b9a73d3e8888884215d3f024ddc3 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 29 Jan 2022 11:10:10 -0500 Subject: [PATCH] [NEO] Implemented Era of Enlightenment / Hand of Enlightenment --- .../src/mage/cards/e/EraOfEnlightenment.java | 51 +++++++++++++++++++ .../src/mage/cards/h/HandOfEnlightenment.java | 39 ++++++++++++++ .../src/mage/sets/KamigawaNeonDynasty.java | 2 + 3 files changed, 92 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/e/EraOfEnlightenment.java create mode 100644 Mage.Sets/src/mage/cards/h/HandOfEnlightenment.java diff --git a/Mage.Sets/src/mage/cards/e/EraOfEnlightenment.java b/Mage.Sets/src/mage/cards/e/EraOfEnlightenment.java new file mode 100644 index 0000000000..d51ed56c78 --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/EraOfEnlightenment.java @@ -0,0 +1,51 @@ +package mage.cards.e; + +import mage.abilities.common.SagaAbility; +import mage.abilities.effects.common.ExileSagaAndReturnTransformedEffect; +import mage.abilities.effects.common.GainLifeEffect; +import mage.abilities.effects.keyword.ScryEffect; +import mage.abilities.keyword.TransformAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SagaChapter; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class EraOfEnlightenment extends CardImpl { + + public EraOfEnlightenment(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{W}"); + + this.subtype.add(SubType.SAGA); + this.secondSideCardClazz = mage.cards.h.HandOfEnlightenment.class; + + // (As this Saga enters and after your draw step, add a lore counter.) + SagaAbility sagaAbility = new SagaAbility(this, SagaChapter.CHAPTER_III); + + // I — Scry 2. + sagaAbility.addChapterEffect(this, SagaChapter.CHAPTER_I, new ScryEffect(2)); + + // II — You gain 2 life. + sagaAbility.addChapterEffect(this, SagaChapter.CHAPTER_II, new GainLifeEffect(2)); + + // III — Exile this Saga, then return it to the battlefield transformed under your control. + this.addAbility(new TransformAbility()); + sagaAbility.addChapterEffect(this, SagaChapter.CHAPTER_III, new ExileSagaAndReturnTransformedEffect()); + + this.addAbility(sagaAbility); + } + + private EraOfEnlightenment(final EraOfEnlightenment card) { + super(card); + } + + @Override + public EraOfEnlightenment copy() { + return new EraOfEnlightenment(this); + } +} diff --git a/Mage.Sets/src/mage/cards/h/HandOfEnlightenment.java b/Mage.Sets/src/mage/cards/h/HandOfEnlightenment.java new file mode 100644 index 0000000000..bd13b8a358 --- /dev/null +++ b/Mage.Sets/src/mage/cards/h/HandOfEnlightenment.java @@ -0,0 +1,39 @@ +package mage.cards.h; + +import mage.MageInt; +import mage.abilities.keyword.FirstStrikeAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class HandOfEnlightenment extends CardImpl { + + public HandOfEnlightenment(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT, CardType.CREATURE}, ""); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.MONK); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + this.color.setWhite(true); + this.nightCard = true; + + // First strike + this.addAbility(FirstStrikeAbility.getInstance()); + } + + private HandOfEnlightenment(final HandOfEnlightenment card) { + super(card); + } + + @Override + public HandOfEnlightenment copy() { + return new HandOfEnlightenment(this); + } +} diff --git a/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java b/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java index 0dfca67fb3..217143c243 100644 --- a/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java +++ b/Mage.Sets/src/mage/sets/KamigawaNeonDynasty.java @@ -31,9 +31,11 @@ public final class KamigawaNeonDynasty extends ExpansionSet { cards.add(new SetCardInfo("Bronzeplate Boar", 135, Rarity.UNCOMMON, mage.cards.b.BronzeplateBoar.class)); cards.add(new SetCardInfo("Dokuchi Shadow-Walker", 94, Rarity.COMMON, mage.cards.d.DokuchiShadowWalker.class)); cards.add(new SetCardInfo("Enthusiastic Mechanaut", 218, Rarity.UNCOMMON, mage.cards.e.EnthusiasticMechanaut.class)); + cards.add(new SetCardInfo("Era of Enlightenment", 11, Rarity.COMMON, mage.cards.e.EraOfEnlightenment.class)); cards.add(new SetCardInfo("Forest", 301, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Goro-Goro, Disciple of Ryusei", 145, Rarity.RARE, mage.cards.g.GoroGoroDiscipleOfRyusei.class)); cards.add(new SetCardInfo("Greater Tanuki", 189, Rarity.COMMON, mage.cards.g.GreaterTanuki.class)); + cards.add(new SetCardInfo("Hand of Enlightenment", 11, Rarity.COMMON, mage.cards.h.HandOfEnlightenment.class)); cards.add(new SetCardInfo("Hidetsugu, Devouring Chaos", 99, Rarity.RARE, mage.cards.h.HidetsuguDevouringChaos.class)); cards.add(new SetCardInfo("Imperial Moth", 4, Rarity.COMMON, mage.cards.i.ImperialMoth.class)); cards.add(new SetCardInfo("Island", 295, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS));