[J25] Implement Scourge of the Undercity

This commit is contained in:
theelk801 2024-10-31 22:02:19 -04:00
parent abf600bab7
commit c1767bf813
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,47 @@
package mage.cards.s;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
import mage.abilities.keyword.LifelinkAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.StaticFilters;
import mage.target.TargetPermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ScourgeOfTheUndercity extends CardImpl {
public ScourgeOfTheUndercity(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}");
this.subtype.add(SubType.GORGON);
this.subtype.add(SubType.VAMPIRE);
this.power = new MageInt(2);
this.toughness = new MageInt(1);
// Lifelink
this.addAbility(LifelinkAbility.getInstance());
// When Scourge of the Undercity enters, another target creature you control gains lifelink until end of turn.
Ability ability = new EntersBattlefieldTriggeredAbility(new GainAbilityTargetEffect(LifelinkAbility.getInstance()));
ability.addTarget(new TargetPermanent(StaticFilters.FILTER_ANOTHER_TARGET_CREATURE_YOU_CONTROL));
this.addAbility(ability);
}
private ScourgeOfTheUndercity(final ScourgeOfTheUndercity card) {
super(card);
}
@Override
public ScourgeOfTheUndercity copy() {
return new ScourgeOfTheUndercity(this);
}
}

View file

@ -560,6 +560,7 @@ public final class FoundationsJumpstart extends ExpansionSet {
cards.add(new SetCardInfo("Scion of Darkness", 486, Rarity.UNCOMMON, mage.cards.s.ScionOfDarkness.class));
cards.add(new SetCardInfo("Scion of Opulence", 597, Rarity.RARE, mage.cards.s.ScionOfOpulence.class));
cards.add(new SetCardInfo("Scion of the Swarm", 487, Rarity.UNCOMMON, mage.cards.s.ScionOfTheSwarm.class));
cards.add(new SetCardInfo("Scourge of the Undercity", 11, Rarity.COMMON, mage.cards.s.ScourgeOfTheUndercity.class));
cards.add(new SetCardInfo("Screaming Swarm", 351, Rarity.UNCOMMON, mage.cards.s.ScreamingSwarm.class));
cards.add(new SetCardInfo("Search Party Captain", 250, Rarity.COMMON, mage.cards.s.SearchPartyCaptain.class));
cards.add(new SetCardInfo("Seat of the Synod", 773, Rarity.COMMON, mage.cards.s.SeatOfTheSynod.class));