[WOE] Implement Lord Skitter, Sewer King (#10865)

This commit is contained in:
Susucre 2023-08-18 15:35:14 +02:00 committed by GitHub
parent 19b15cb8f9
commit a575968aab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,67 @@
package mage.cards.l;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.BeginningOfCombatTriggeredAbility;
import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.ExileTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.constants.TargetController;
import mage.filter.FilterCard;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.predicate.mageobject.AnotherPredicate;
import mage.game.permanent.token.RatCantBlockToken;
import mage.target.common.TargetCardInOpponentsGraveyard;
import java.util.UUID;
/**
*
* @author Susucr
*/
public final class LordSkitterSewerKing extends CardImpl {
private static final FilterControlledPermanent filter = new FilterControlledPermanent("another Rat");
private static final FilterCard filterCard = new FilterCard("card from an opponent's graveyard");
static {
filter.add(AnotherPredicate.instance);
}
public LordSkitterSewerKing(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}");
this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.RAT);
this.subtype.add(SubType.NOBLE);
this.power = new MageInt(3);
this.toughness = new MageInt(3);
// Whenever another Rat enters the battlefield under your control, exile up to one target card from an opponent's graveyard.
Ability trigger = new EntersBattlefieldControlledTriggeredAbility(
new ExileTargetEffect(), filter
);
trigger.addTarget(new TargetCardInOpponentsGraveyard(0, 1, filterCard));
this.addAbility(trigger);
// At the beginning of combat on your turn, create a 1/1 black Rat creature token with "This creature can't block."
this.addAbility(new BeginningOfCombatTriggeredAbility(
new CreateTokenEffect(new RatCantBlockToken()),
TargetController.YOU, false
));
}
private LordSkitterSewerKing(final LordSkitterSewerKing card) {
super(card);
}
@Override
public LordSkitterSewerKing copy() {
return new LordSkitterSewerKing(this);
}
}

View file

@ -52,6 +52,7 @@ public final class WildsOfEldraine extends ExpansionSet {
cards.add(new SetCardInfo("Living Lectern", 59, Rarity.COMMON, mage.cards.l.LivingLectern.class));
cards.add(new SetCardInfo("Lord Skitter's Blessing", 98, Rarity.RARE, mage.cards.l.LordSkittersBlessing.class));
cards.add(new SetCardInfo("Lord Skitter's Butcher", 99, Rarity.UNCOMMON, mage.cards.l.LordSkittersButcher.class));
cards.add(new SetCardInfo("Lord Skitter, Sewer King", 97, Rarity.RARE, mage.cards.l.LordSkitterSewerKing.class));
cards.add(new SetCardInfo("Monstrous Rage", 142, Rarity.UNCOMMON, mage.cards.m.MonstrousRage.class));
cards.add(new SetCardInfo("Moonshaker Cavalry", 21, Rarity.MYTHIC, mage.cards.m.MoonshakerCavalry.class));
cards.add(new SetCardInfo("Mountain", 265, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS));