[SNC] Implemented Obscura Interceptor

This commit is contained in:
Evan Kranzler 2022-04-11 19:27:33 -04:00
parent c0cc889feb
commit 6e5a5baa3d
3 changed files with 55 additions and 2 deletions

View file

@ -0,0 +1,52 @@
package mage.cards.o;
import mage.MageInt;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.common.delayed.ReflexiveTriggeredAbility;
import mage.abilities.effects.common.ReturnToHandTargetEffect;
import mage.abilities.effects.keyword.ConniveSourceEffect;
import mage.abilities.keyword.FlashAbility;
import mage.abilities.keyword.LifelinkAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.StaticFilters;
import mage.target.TargetSpell;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ObscuraInterceptor extends CardImpl {
public ObscuraInterceptor(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}{U}{B}");
this.subtype.add(SubType.CEPHALID);
this.subtype.add(SubType.WIZARD);
this.power = new MageInt(3);
this.toughness = new MageInt(1);
// Flash
this.addAbility(FlashAbility.getInstance());
// Lifelink
this.addAbility(LifelinkAbility.getInstance());
// When Obscura Interceptor enters the battlefield, it connives. When it connives this way, return up to one target spell to its owner's hand.
ReflexiveTriggeredAbility ability = new ReflexiveTriggeredAbility(new ReturnToHandTargetEffect(), false);
ability.addTarget(new TargetSpell(0, 1, StaticFilters.FILTER_SPELL));
this.addAbility(new EntersBattlefieldTriggeredAbility(new ConniveSourceEffect(ability)));
}
private ObscuraInterceptor(final ObscuraInterceptor card) {
super(card);
}
@Override
public ObscuraInterceptor copy() {
return new ObscuraInterceptor(this);
}
}

View file

@ -71,6 +71,7 @@ public final class StreetsOfNewCapenna extends ExpansionSet {
cards.add(new SetCardInfo("Murder", 88, Rarity.COMMON, mage.cards.m.Murder.class));
cards.add(new SetCardInfo("Nimble Larcenist", 205, Rarity.COMMON, mage.cards.n.NimbleLarcenist.class));
cards.add(new SetCardInfo("Obscura Charm", 208, Rarity.UNCOMMON, mage.cards.o.ObscuraCharm.class));
cards.add(new SetCardInfo("Obscura Interceptor", 209, Rarity.RARE, mage.cards.o.ObscuraInterceptor.class));
cards.add(new SetCardInfo("Plains", 262, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Professional Face-Breaker", 116, Rarity.RARE, mage.cards.p.ProfessionalFaceBreaker.class));
cards.add(new SetCardInfo("Psychic Pickpocket", 54, Rarity.UNCOMMON, mage.cards.p.PsychicPickpocket.class));

View file

@ -74,10 +74,10 @@ public class ConniveSourceEffect extends OneShotEffect {
return staticText;
}
if (ability == null) {
return "{this} connives. <i>(Draw a card, then discard a card. " +
return "it connives. <i>(Draw a card, then discard a card. " +
"If you discarded a nonland card, put a +1/+1 counter on this creature.)</i>";
}
return "{this} connives. When it connives this way, " +
return "it connives. When it connives this way, " +
CardUtil.getTextWithFirstCharLowerCase(ability.getRule()) +
" <i>(To have a creature connive, draw a card, then discard a card. " +
"If you discarded a nonland card, put a +1/+1 counter on that creature.)</i>";