From 7a8a11da92aa5ac36898c70ffee986c617094ffc Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 29 Oct 2020 19:35:43 -0400 Subject: [PATCH] [CMR] Implemented Nymris, Oona's Trickster --- .../mage/cards/n/NymrisOonasTrickster.java | 56 +++++++++++++++++++ Mage.Sets/src/mage/sets/CommanderLegends.java | 1 + 2 files changed, 57 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/n/NymrisOonasTrickster.java diff --git a/Mage.Sets/src/mage/cards/n/NymrisOonasTrickster.java b/Mage.Sets/src/mage/cards/n/NymrisOonasTrickster.java new file mode 100644 index 0000000000..424adf5aea --- /dev/null +++ b/Mage.Sets/src/mage/cards/n/NymrisOonasTrickster.java @@ -0,0 +1,56 @@ +package mage.cards.n; + +import mage.MageInt; +import mage.abilities.common.FirstSpellOpponentsTurnTriggeredAbility; +import mage.abilities.dynamicvalue.common.StaticValue; +import mage.abilities.effects.common.LookLibraryAndPickControllerEffect; +import mage.abilities.keyword.FlashAbility; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.constants.Zone; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class NymrisOonasTrickster extends CardImpl { + + public NymrisOonasTrickster(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}{B}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.FAERIE); + this.subtype.add(SubType.KNIGHT); + this.power = new MageInt(1); + this.toughness = new MageInt(6); + + // Flash + this.addAbility(FlashAbility.getInstance()); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Whenever you cast your first spell during each opponent's turn, look at the top two cards of your library. Put one of those cards into your hand and the other into your graveyard. + this.addAbility(new FirstSpellOpponentsTurnTriggeredAbility( + new LookLibraryAndPickControllerEffect( + StaticValue.get(2), false, StaticValue.get(1), + StaticFilters.FILTER_CARD, Zone.GRAVEYARD, false, false + ), false + )); + } + + private NymrisOonasTrickster(final NymrisOonasTrickster card) { + super(card); + } + + @Override + public NymrisOonasTrickster copy() { + return new NymrisOonasTrickster(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CommanderLegends.java b/Mage.Sets/src/mage/sets/CommanderLegends.java index 068fae749b..2c5f69b12f 100644 --- a/Mage.Sets/src/mage/sets/CommanderLegends.java +++ b/Mage.Sets/src/mage/sets/CommanderLegends.java @@ -80,6 +80,7 @@ public final class CommanderLegends extends ExpansionSet { cards.add(new SetCardInfo("Natural Reclamation", 245, Rarity.COMMON, mage.cards.n.NaturalReclamation.class)); cards.add(new SetCardInfo("Nekusar, the Mindrazer", 529, Rarity.MYTHIC, mage.cards.n.NekusarTheMindrazer.class)); cards.add(new SetCardInfo("Ninth Bridge Patrol", 33, Rarity.COMMON, mage.cards.n.NinthBridgePatrol.class)); + cards.add(new SetCardInfo("Nymris, Oona's Trickster", 288, Rarity.RARE, mage.cards.n.NymrisOonasTrickster.class)); cards.add(new SetCardInfo("Omenspeaker", 83, Rarity.COMMON, mage.cards.o.Omenspeaker.class)); cards.add(new SetCardInfo("Path of Ancestry", 353, Rarity.COMMON, mage.cards.p.PathOfAncestry.class)); cards.add(new SetCardInfo("Patron of the Valiant", 1000, Rarity.UNCOMMON, mage.cards.p.PatronOfTheValiant.class));