From 3a4dcc76889c04ae9047c32d2e6ce86d861e28ce Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 10 Jan 2020 18:08:55 -0500 Subject: [PATCH] Implemented Funeral Rites --- Mage.Sets/src/mage/cards/f/FuneralRites.java | 37 +++++++++++++++++++ .../src/mage/sets/TherosBeyondDeath.java | 1 + 2 files changed, 38 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/f/FuneralRites.java diff --git a/Mage.Sets/src/mage/cards/f/FuneralRites.java b/Mage.Sets/src/mage/cards/f/FuneralRites.java new file mode 100644 index 0000000000..70e59727e6 --- /dev/null +++ b/Mage.Sets/src/mage/cards/f/FuneralRites.java @@ -0,0 +1,37 @@ +package mage.cards.f; + +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.LoseLifeSourceControllerEffect; +import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveControllerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class FuneralRites extends CardImpl { + + public FuneralRites(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}"); + + // You draw two cards, lose 2 life, and put the top two cards of your library into your graveyard, + this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(2) + .setText("you draw two cards,")); + this.getSpellAbility().addEffect(new LoseLifeSourceControllerEffect(2) + .setText("lose 2 life,")); + this.getSpellAbility().addEffect(new PutTopCardOfLibraryIntoGraveControllerEffect(2) + .concatBy("and")); + } + + private FuneralRites(final FuneralRites card) { + super(card); + } + + @Override + public FuneralRites copy() { + return new FuneralRites(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index 8fbfe424fe..d00ba7dffe 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -82,6 +82,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("Field of Ruin", 242, Rarity.UNCOMMON, mage.cards.f.FieldOfRuin.class)); cards.add(new SetCardInfo("Final Death", 95, Rarity.COMMON, mage.cards.f.FinalDeath.class)); cards.add(new SetCardInfo("Forest", 254, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS)); + cards.add(new SetCardInfo("Funeral Rites", 97, Rarity.COMMON, mage.cards.f.FuneralRites.class)); cards.add(new SetCardInfo("Gallia of the Endless Dance", 217, Rarity.RARE, mage.cards.g.GalliaOfTheEndlessDance.class)); cards.add(new SetCardInfo("Gift of Strength", 171, Rarity.COMMON, mage.cards.g.GiftOfStrength.class)); cards.add(new SetCardInfo("Glimpse of Freedom", 50, Rarity.UNCOMMON, mage.cards.g.GlimpseOfFreedom.class));