diff --git a/Mage.Sets/src/mage/cards/l/LaunchMishap.java b/Mage.Sets/src/mage/cards/l/LaunchMishap.java new file mode 100644 index 0000000000..3a1b58af5f --- /dev/null +++ b/Mage.Sets/src/mage/cards/l/LaunchMishap.java @@ -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); + } +} diff --git a/Mage.Sets/src/mage/sets/Jumpstart2022.java b/Mage.Sets/src/mage/sets/Jumpstart2022.java index 63aadac192..062aa28d1f 100644 --- a/Mage.Sets/src/mage/sets/Jumpstart2022.java +++ b/Mage.Sets/src/mage/sets/Jumpstart2022.java @@ -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));