From 3fc3b9da1a72457c8b33ac0b78ab37779ec34730 Mon Sep 17 00:00:00 2001 From: jmlundeen Date: Fri, 5 Sep 2025 14:59:33 -0500 Subject: [PATCH] [SPM] implement Superior Foes of Spider-Man --- .../mage/cards/s/SuperiorFoesOfSpiderMan.java | 57 +++++++++++++++++++ Mage.Sets/src/mage/sets/MarvelsSpiderMan.java | 1 + 2 files changed, 58 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/SuperiorFoesOfSpiderMan.java diff --git a/Mage.Sets/src/mage/cards/s/SuperiorFoesOfSpiderMan.java b/Mage.Sets/src/mage/cards/s/SuperiorFoesOfSpiderMan.java new file mode 100644 index 00000000000..7de71b2b575 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SuperiorFoesOfSpiderMan.java @@ -0,0 +1,57 @@ +package mage.cards.s; + +import mage.MageInt; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.effects.common.ExileTopCardPlayUntilExileAnotherEffect; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.ComparisonType; +import mage.constants.SubType; +import mage.filter.FilterSpell; +import mage.filter.predicate.mageobject.ManaValuePredicate; + +import java.util.UUID; + +/** + * + * @author Jmlundeen + */ +public final class SuperiorFoesOfSpiderMan extends CardImpl { + + private static final FilterSpell filter = new FilterSpell("a spell with mana value 4 or greater"); + + static { + filter.add(new ManaValuePredicate(ComparisonType.OR_GREATER, 4)); + } + + public SuperiorFoesOfSpiderMan(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.ROGUE); + this.subtype.add(SubType.VILLAIN); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // Trample + this.addAbility(TrampleAbility.getInstance()); + + // Whenever you cast a spell with mana value 4 or greater, you may exile the top card of your library. If you do, you may play that card until you exile another card with this creature. + this.addAbility(new SpellCastControllerTriggeredAbility( + new ExileTopCardPlayUntilExileAnotherEffect(true), + filter, + true + )); + } + + private SuperiorFoesOfSpiderMan(final SuperiorFoesOfSpiderMan card) { + super(card); + } + + @Override + public SuperiorFoesOfSpiderMan copy() { + return new SuperiorFoesOfSpiderMan(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarvelsSpiderMan.java b/Mage.Sets/src/mage/sets/MarvelsSpiderMan.java index d7fe95e86d2..044a1f7cd61 100644 --- a/Mage.Sets/src/mage/sets/MarvelsSpiderMan.java +++ b/Mage.Sets/src/mage/sets/MarvelsSpiderMan.java @@ -260,6 +260,7 @@ public final class MarvelsSpiderMan extends ExpansionSet { cards.add(new SetCardInfo("Subway Train", 178, Rarity.COMMON, mage.cards.s.SubwayTrain.class)); cards.add(new SetCardInfo("Sudden Strike", 19, Rarity.UNCOMMON, mage.cards.s.SuddenStrike.class)); cards.add(new SetCardInfo("Sun-Spider, Nimble Webber", 154, Rarity.UNCOMMON, mage.cards.s.SunSpiderNimbleWebber.class)); + cards.add(new SetCardInfo("Superior Foes of Spider-Man", 96, Rarity.UNCOMMON, mage.cards.s.SuperiorFoesOfSpiderMan.class)); cards.add(new SetCardInfo("Supportive Parents", 119, Rarity.UNCOMMON, mage.cards.s.SupportiveParents.class)); cards.add(new SetCardInfo("Swamp", 191, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Swamp", 196, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));