diff --git a/Mage.Sets/src/mage/cards/s/SpiderManNoMore.java b/Mage.Sets/src/mage/cards/s/SpiderManNoMore.java new file mode 100644 index 00000000000..3ea997a0b9e --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SpiderManNoMore.java @@ -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); + } +} diff --git a/Mage.Sets/src/mage/sets/MarvelsSpiderMan.java b/Mage.Sets/src/mage/sets/MarvelsSpiderMan.java index 5396a4926ff..74a846984a9 100644 --- a/Mage.Sets/src/mage/sets/MarvelsSpiderMan.java +++ b/Mage.Sets/src/mage/sets/MarvelsSpiderMan.java @@ -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));