[SNC] Implemented A Little Chat

This commit is contained in:
Evan Kranzler 2022-04-07 21:24:05 -04:00
parent 7f6fc11411
commit 71cf4a69cc
3 changed files with 49 additions and 7 deletions

View file

@ -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);
}
}

View file

@ -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) {

View file

@ -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));