[J22] Implement Deadly Plot

This commit is contained in:
Evan Kranzler 2022-11-23 17:49:43 -05:00
parent c45577643f
commit 37ce87654a
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,49 @@
package mage.cards.d;
import mage.abilities.Mode;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.FilterCard;
import mage.filter.common.FilterCreatureCard;
import mage.target.common.TargetCardInYourGraveyard;
import mage.target.common.TargetCreatureOrPlaneswalker;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class DeadlyPlot extends CardImpl {
private static final FilterCard filter = new FilterCreatureCard("Zombie creature card from your graveyard");
static {
filter.add(SubType.ZOMBIE.getPredicate());
}
public DeadlyPlot(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{B}");
// Choose one --
// * Destroy target creature or planeswalker.
this.getSpellAbility().addEffect(new DestroyTargetEffect());
this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker());
// * Return target Zombie creature card from your graveyard to the battlefield tapped.
this.getSpellAbility().addMode(new Mode(new ReturnFromGraveyardToBattlefieldTargetEffect(true))
.addTarget(new TargetCardInYourGraveyard(filter)));
}
private DeadlyPlot(final DeadlyPlot card) {
super(card);
}
@Override
public DeadlyPlot copy() {
return new DeadlyPlot(this);
}
}

View file

@ -32,6 +32,7 @@ public final class Jumpstart2022 extends ExpansionSet {
cards.add(new SetCardInfo("Coldsteel Heart", 94, Rarity.UNCOMMON, mage.cards.c.ColdsteelHeart.class));
cards.add(new SetCardInfo("Conductor of Cacophony", 20, Rarity.UNCOMMON, mage.cards.c.ConductorOfCacophony.class));
cards.add(new SetCardInfo("Crypt Rats", 392, Rarity.UNCOMMON, mage.cards.c.CryptRats.class));
cards.add(new SetCardInfo("Deadly Plot", 22, Rarity.UNCOMMON, mage.cards.d.DeadlyPlot.class));
cards.add(new SetCardInfo("Demon of Catastrophes", 397, Rarity.RARE, mage.cards.d.DemonOfCatastrophes.class));
cards.add(new SetCardInfo("Diabolic Edict", 67, Rarity.COMMON, mage.cards.d.DiabolicEdict.class));
cards.add(new SetCardInfo("Dread Presence", 403, Rarity.RARE, mage.cards.d.DreadPresence.class));