[SPM] Implement Spiders-Man, Heroic Horde

This commit is contained in:
theelk801 2025-09-02 11:54:29 -04:00
parent 482c7a9443
commit 0a4f2be833
3 changed files with 80 additions and 0 deletions

View file

@ -0,0 +1,50 @@
package mage.cards.s;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.condition.common.WebSlingingCondition;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.GainLifeEffect;
import mage.abilities.keyword.WebSlingingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.game.permanent.token.Spider21Token;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class SpidersManHeroicHorde extends CardImpl {
public SpidersManHeroicHorde(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}");
this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.SPIDER);
this.subtype.add(SubType.HERO);
this.power = new MageInt(2);
this.toughness = new MageInt(3);
// Web-slinging {4}{G}{G}
this.addAbility(new WebSlingingAbility(this, "{4}{G}{G}"));
// When Spiders-Man enters, if they were cast using web-slinging, you gain 3 life and create two 2/1 green Spider creature tokens with reach.
Ability ability = new EntersBattlefieldTriggeredAbility(new GainLifeEffect(3)).withInterveningIf(WebSlingingCondition.THEY);
ability.addEffect(new CreateTokenEffect(new Spider21Token(), 2).concatBy("and"));
this.addAbility(ability);
}
private SpidersManHeroicHorde(final SpidersManHeroicHorde card) {
super(card);
}
@Override
public SpidersManHeroicHorde copy() {
return new SpidersManHeroicHorde(this);
}
}

View file

@ -148,6 +148,7 @@ public final class MarvelsSpiderMan extends ExpansionSet {
cards.add(new SetCardInfo("Spider-Punk", 92, Rarity.RARE, mage.cards.s.SpiderPunk.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Spider-Rex, Daring Dino", 116, Rarity.COMMON, mage.cards.s.SpiderRexDaringDino.class));
cards.add(new SetCardInfo("Spider-Suit", 176, Rarity.UNCOMMON, mage.cards.s.SpiderSuit.class));
cards.add(new SetCardInfo("Spiders-Man, Heroic Horde", 117, Rarity.UNCOMMON, mage.cards.s.SpidersManHeroicHorde.class));
cards.add(new SetCardInfo("Starling, Aerial Ally", 18, Rarity.COMMON, mage.cards.s.StarlingAerialAlly.class));
cards.add(new SetCardInfo("Steel Wrecking Ball", 177, Rarity.COMMON, mage.cards.s.SteelWreckingBall.class));
cards.add(new SetCardInfo("Stegron the Dinosaur Man", 95, Rarity.COMMON, mage.cards.s.StegronTheDinosaurMan.class));

View file

@ -0,0 +1,29 @@
package mage.abilities.condition.common;
import mage.abilities.Ability;
import mage.abilities.condition.Condition;
import mage.abilities.keyword.WebSlingingAbility;
import mage.game.Game;
import mage.util.CardUtil;
/**
* @author TheElk801
*/
public enum WebSlingingCondition implements Condition {
THEY("they were");
private final String message;
WebSlingingCondition(String message) {
this.message = message;
}
@Override
public boolean apply(Game game, Ability source) {
return CardUtil.checkSourceCostsTagExists(game, source, WebSlingingAbility.WEB_SLINGING_ACTIVATION_VALUE_KEY);
}
@Override
public String toString() {
return message + " cast using web-slinging";
}
}