[SPM] implement Spider-Man No More

This commit is contained in:
jmlundeen 2025-09-05 11:28:32 -05:00
parent 7539ba7a4f
commit 50e0d200cb
2 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,58 @@
package mage.cards.s;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.AttachEffect;
import mage.abilities.effects.common.continuous.BecomesCreatureAttachedEffect;
import mage.abilities.keyword.DefenderAbility;
import mage.abilities.keyword.EnchantAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Outcome;
import mage.constants.SubType;
import mage.game.permanent.token.custom.CreatureToken;
import mage.target.TargetPermanent;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/**
*
* @author Jmlundeen
*/
public final class SpiderManNoMore extends CardImpl {
public SpiderManNoMore(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{U}");
this.subtype.add(SubType.AURA);
// Enchant creature
TargetPermanent auraTarget = new TargetCreaturePermanent();
this.getSpellAbility().addTarget(auraTarget);
this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
this.addAbility(new EnchantAbility(auraTarget));
// Enchanted creature is a Citizen with base power and toughness 1/1. It has defender and loses all other abilities.
Effect effect = new BecomesCreatureAttachedEffect(
new CreatureToken(1, 1, "Citizen with base power and toughness 1/1")
.withSubType(SubType.CITIZEN)
.withAbility(DefenderAbility.getInstance()),
"Enchanted creature is a Citizen with base power and toughness 1/1. It has defender and loses all other abilities",
Duration.WhileOnBattlefield,
BecomesCreatureAttachedEffect.LoseType.ABILITIES_SUBTYPE
);
this.addAbility(new SimpleStaticAbility(effect));
}
private SpiderManNoMore(final SpiderManNoMore card) {
super(card);
}
@Override
public SpiderManNoMore copy() {
return new SpiderManNoMore(this);
}
}

View file

@ -228,6 +228,7 @@ public final class MarvelsSpiderMan extends ExpansionSet {
cards.add(new SetCardInfo("Spider-Man 2099", 205, Rarity.RARE, mage.cards.s.SpiderMan2099.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Spider-Man 2099", 216, Rarity.RARE, mage.cards.s.SpiderMan2099.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Spider-Man India", 151, Rarity.UNCOMMON, mage.cards.s.SpiderManIndia.class));
cards.add(new SetCardInfo("Spider-Man No More", 45, Rarity.COMMON, mage.cards.s.SpiderManNoMore.class));
cards.add(new SetCardInfo("Spider-Man Noir", 204, Rarity.UNCOMMON, mage.cards.s.SpiderManNoir.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Spider-Man Noir", 67, Rarity.UNCOMMON, mage.cards.s.SpiderManNoir.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Spider-Man, Brooklyn Visionary", 115, Rarity.COMMON, mage.cards.s.SpiderManBrooklynVisionary.class));