From 53bf1ec1acfd9ff5032fd61c7ebaf962d2f953ce Mon Sep 17 00:00:00 2001 From: theelk801 Date: Mon, 5 Jun 2023 23:08:05 -0400 Subject: [PATCH] [LTR] Implement Oath of the Grey Host --- .../src/mage/cards/o/OathOfTheGreyHost.java | 67 +++++++++++++++++++ .../TheLordOfTheRingsTalesOfMiddleEarth.java | 2 + 2 files changed, 69 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/o/OathOfTheGreyHost.java diff --git a/Mage.Sets/src/mage/cards/o/OathOfTheGreyHost.java b/Mage.Sets/src/mage/cards/o/OathOfTheGreyHost.java new file mode 100644 index 0000000000..735c6470d2 --- /dev/null +++ b/Mage.Sets/src/mage/cards/o/OathOfTheGreyHost.java @@ -0,0 +1,67 @@ +package mage.cards.o; + +import mage.abilities.common.SagaAbility; +import mage.abilities.effects.Effects; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.CreateTokenTargetEffect; +import mage.abilities.effects.common.LoseLifeOpponentsEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SagaChapter; +import mage.constants.SubType; +import mage.game.permanent.token.FoodToken; +import mage.game.permanent.token.SpiritWhiteToken; +import mage.game.permanent.token.TreasureToken; +import mage.target.common.TargetOpponent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class OathOfTheGreyHost extends CardImpl { + + public OathOfTheGreyHost(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{B}"); + + this.subtype.add(SubType.SAGA); + + // (As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.) + SagaAbility sagaAbility = new SagaAbility(this); + + // I-- You and target opponent each create a Food token. + sagaAbility.addChapterEffect( + this, SagaChapter.CHAPTER_I, SagaChapter.CHAPTER_I, + new Effects( + new CreateTokenEffect(new FoodToken()).setText("you"), + new CreateTokenTargetEffect(new FoodToken()) + .setText("and target opponent each create a Food token") + ), new TargetOpponent() + ); + + // II-- Each opponent loses 3 life. Create a Treasure token. + sagaAbility.addChapterEffect( + this, SagaChapter.CHAPTER_II, + new LoseLifeOpponentsEffect(3), + new CreateTokenEffect(new TreasureToken()) + ); + + // III-- Create three tapped 1/1 white Spirit creature tokens with flying. + sagaAbility.addChapterEffect( + this, SagaChapter.CHAPTER_III, + new CreateTokenEffect(new SpiritWhiteToken(), 3, true) + ); + + this.addAbility(sagaAbility); + } + + private OathOfTheGreyHost(final OathOfTheGreyHost card) { + super(card); + } + + @Override + public OathOfTheGreyHost copy() { + return new OathOfTheGreyHost(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java index c36c079c03..b3e7c49027 100644 --- a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java +++ b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java @@ -82,6 +82,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet { cards.add(new SetCardInfo("Mountain", 268, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Mushroom Watchdogs", 180, Rarity.COMMON, mage.cards.m.MushroomWatchdogs.class)); cards.add(new SetCardInfo("Nazgul", 100, Rarity.UNCOMMON, mage.cards.n.Nazgul.class)); + cards.add(new SetCardInfo("Oath of the Grey Host", 101, Rarity.UNCOMMON, mage.cards.o.OathOfTheGreyHost.class)); cards.add(new SetCardInfo("Oliphaunt", 139, Rarity.COMMON, mage.cards.o.Oliphaunt.class)); cards.add(new SetCardInfo("Olog-hai Crusher", 140, Rarity.COMMON, mage.cards.o.OlogHaiCrusher.class)); cards.add(new SetCardInfo("One Ring to Rule Them All", 102, Rarity.RARE, mage.cards.o.OneRingToRuleThemAll.class)); @@ -127,5 +128,6 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet { cards.add(new SetCardInfo("You Cannot Pass!", 38, Rarity.UNCOMMON, mage.cards.y.YouCannotPass.class)); cards.add(new SetCardInfo("Eowyn, Fearless Knight", 201, Rarity.RARE, mage.cards.e.EowynFearlessKnight.class)); cards.add(new SetCardInfo("Gift of Strands", 170, Rarity.UNCOMMON, mage.cards.g.GiftOfStrands.class)); + cards.add(new SetCardInfo("Oath of the Grey Host", 101, Rarity.UNCOMMON, mage.cards.o.OathOfTheGreyHost.class)); } }