From 71cf4a69cc76a28ad94f9d7e26f30d0068918898 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 7 Apr 2022 21:24:05 -0400 Subject: [PATCH] [SNC] Implemented A Little Chat --- Mage.Sets/src/mage/cards/a/ALittleChat.java | 40 +++++++++++++++++++ Mage.Sets/src/mage/cards/s/SleightOfHand.java | 15 +++---- .../src/mage/sets/StreetsOfNewCapenna.java | 1 + 3 files changed, 49 insertions(+), 7 deletions(-) create mode 100644 Mage.Sets/src/mage/cards/a/ALittleChat.java diff --git a/Mage.Sets/src/mage/cards/a/ALittleChat.java b/Mage.Sets/src/mage/cards/a/ALittleChat.java new file mode 100644 index 0000000000..aeec6476a1 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/ALittleChat.java @@ -0,0 +1,40 @@ +package mage.cards.a; + +import mage.abilities.dynamicvalue.common.StaticValue; +import mage.abilities.effects.common.LookLibraryAndPickControllerEffect; +import mage.abilities.keyword.CasualtyAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Zone; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ALittleChat extends CardImpl { + + public ALittleChat(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}"); + + // Casualty 1 + this.addAbility(new CasualtyAbility(this, 1)); + + // Look at the top two cards of your library. Put one of them into your hand and the other on the bottom of your library. + this.getSpellAbility().addEffect(new LookLibraryAndPickControllerEffect( + StaticValue.get(2), false, StaticValue.get(1), + StaticFilters.FILTER_CARD, Zone.LIBRARY, false, false + )); + } + + private ALittleChat(final ALittleChat card) { + super(card); + } + + @Override + public ALittleChat copy() { + return new ALittleChat(this); + } +} diff --git a/Mage.Sets/src/mage/cards/s/SleightOfHand.java b/Mage.Sets/src/mage/cards/s/SleightOfHand.java index a822f03a46..ce6f17b1af 100644 --- a/Mage.Sets/src/mage/cards/s/SleightOfHand.java +++ b/Mage.Sets/src/mage/cards/s/SleightOfHand.java @@ -1,27 +1,28 @@ - package mage.cards.s; -import java.util.UUID; import mage.abilities.dynamicvalue.common.StaticValue; import mage.abilities.effects.common.LookLibraryAndPickControllerEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.Zone; -import mage.filter.FilterCard; +import mage.filter.StaticFilters; + +import java.util.UUID; /** - * * @author North */ public final class SleightOfHand extends CardImpl { public SleightOfHand(UUID ownerId, CardSetInfo setInfo) { - super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{U}"); - + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{U}"); // Look at the top two cards of your library. Put one of them into your hand and the other on the bottom of your library. - this.getSpellAbility().addEffect(new LookLibraryAndPickControllerEffect(StaticValue.get(2), false, StaticValue.get(1), new FilterCard(), Zone.LIBRARY, false, false)); + this.getSpellAbility().addEffect(new LookLibraryAndPickControllerEffect( + StaticValue.get(2), false, StaticValue.get(1), + StaticFilters.FILTER_CARD, Zone.LIBRARY, false, false + )); } private SleightOfHand(final SleightOfHand card) { diff --git a/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java b/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java index 3b8952f73d..072d1d800b 100644 --- a/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java +++ b/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java @@ -21,6 +21,7 @@ public final class StreetsOfNewCapenna extends ExpansionSet { this.hasBoosters = true; this.hasBasicLands = true; + cards.add(new SetCardInfo("A Little Chat", 47, Rarity.UNCOMMON, mage.cards.a.ALittleChat.class)); cards.add(new SetCardInfo("Botanical Plaza", 350, Rarity.COMMON, mage.cards.b.BotanicalPlaza.class)); cards.add(new SetCardInfo("Brokers Ascendancy", 170, Rarity.RARE, mage.cards.b.BrokersAscendancy.class)); cards.add(new SetCardInfo("Brokers Charm", 171, Rarity.UNCOMMON, mage.cards.b.BrokersCharm.class));