[J22] Implement Launch Mishap

This commit is contained in:
Evan Kranzler 2022-11-23 20:16:55 -05:00
parent 23bd6f6919
commit 89371ffe25
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,46 @@
package mage.cards.l;
import mage.abilities.effects.common.CounterTargetEffect;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.FilterSpell;
import mage.filter.predicate.Predicates;
import mage.game.permanent.token.ThopterColorlessToken;
import mage.target.TargetSpell;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class LaunchMishap extends CardImpl {
private static final FilterSpell filter = new FilterSpell("creature or planeswalker spell");
static {
filter.add(Predicates.or(
CardType.CREATURE.getPredicate(),
CardType.PLANESWALKER.getPredicate()
));
}
public LaunchMishap(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}");
// Counter target creature or planeswalker spell. Create a 1/1 colorless Thopter artifact creature token with flying.
this.getSpellAbility().addEffect(new CounterTargetEffect());
this.getSpellAbility().addEffect(new CreateTokenEffect(new ThopterColorlessToken()));
this.getSpellAbility().addTarget(new TargetSpell(filter));
}
private LaunchMishap(final LaunchMishap card) {
super(card);
}
@Override
public LaunchMishap copy() {
return new LaunchMishap(this);
}
}

View file

@ -52,6 +52,7 @@ public final class Jumpstart2022 extends ExpansionSet {
cards.add(new SetCardInfo("Kiki-Jiki, Mirror Breaker", 79, Rarity.MYTHIC, mage.cards.k.KikiJikiMirrorBreaker.class));
cards.add(new SetCardInfo("King of the Pride", 57, Rarity.UNCOMMON, mage.cards.k.KingOfThePride.class));
cards.add(new SetCardInfo("Kothophed, Soul Hoarder", 431, Rarity.RARE, mage.cards.k.KothophedSoulHoarder.class));
cards.add(new SetCardInfo("Launch Mishap", 14, Rarity.UNCOMMON, mage.cards.l.LaunchMishap.class));
cards.add(new SetCardInfo("Leonin Warleader", 208, Rarity.RARE, mage.cards.l.LeoninWarleader.class));
cards.add(new SetCardInfo("Lita, Mechanical Engineer", 6, Rarity.MYTHIC, mage.cards.l.LitaMechanicalEngineer.class));
cards.add(new SetCardInfo("Magnifying Glass", 95, Rarity.UNCOMMON, mage.cards.m.MagnifyingGlass.class));