From 7c7095e97495804f5ae1f113161dd3f0fd866d58 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 29 Jun 2021 21:49:35 -0400 Subject: [PATCH] [AFR] Implemented You Find the Villains' Lair --- .../mage/cards/y/YouFindTheVillainsLair.java | 41 +++++++++++++++++++ .../sets/AdventuresInTheForgottenRealms.java | 1 + 2 files changed, 42 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/y/YouFindTheVillainsLair.java diff --git a/Mage.Sets/src/mage/cards/y/YouFindTheVillainsLair.java b/Mage.Sets/src/mage/cards/y/YouFindTheVillainsLair.java new file mode 100644 index 0000000000..a2cc83949d --- /dev/null +++ b/Mage.Sets/src/mage/cards/y/YouFindTheVillainsLair.java @@ -0,0 +1,41 @@ +package mage.cards.y; + +import mage.abilities.Mode; +import mage.abilities.effects.common.CounterTargetEffect; +import mage.abilities.effects.common.DrawDiscardControllerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.TargetSpell; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class YouFindTheVillainsLair extends CardImpl { + + public YouFindTheVillainsLair(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}{U}"); + + // Choose one — + // • Foil Their Scheme — Counter target spell. + this.getSpellAbility().addEffect(new CounterTargetEffect()); + this.getSpellAbility().addTarget(new TargetSpell()); + this.getSpellAbility().getEffects().setFlavorWord("Foil Their Scheme"); + + // • Learn Their Secrets — Draw two cards, then discard two cards. + this.getSpellAbility().addMode(new Mode( + new DrawDiscardControllerEffect(2, 2) + ).setFlavorWord("Learn Their Secrts")); + } + + private YouFindTheVillainsLair(final YouFindTheVillainsLair card) { + super(card); + } + + @Override + public YouFindTheVillainsLair copy() { + return new YouFindTheVillainsLair(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java index a3496982f6..6256def4f3 100644 --- a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java +++ b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java @@ -56,6 +56,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet { cards.add(new SetCardInfo("Tiamat", 235, Rarity.MYTHIC, mage.cards.t.Tiamat.class)); cards.add(new SetCardInfo("Trelasarra Moon Dancer", 236, Rarity.UNCOMMON, mage.cards.t.TrelasarraMoonDancer.class)); cards.add(new SetCardInfo("Vorpal Sword", 124, Rarity.RARE, mage.cards.v.VorpalSword.class)); + cards.add(new SetCardInfo("You Find the Villains' Lair", 84, Rarity.COMMON, mage.cards.y.YouFindTheVillainsLair.class)); cards.add(new SetCardInfo("You See a Guard Approach", 85, Rarity.COMMON, mage.cards.y.YouSeeAGuardApproach.class)); } }