[ECC] Implement Village Pillagers

This commit is contained in:
PurpleCrowbar 2026-01-08 14:20:39 +00:00
parent d988c17327
commit 8098321373
2 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,61 @@
package mage.cards.v;
import mage.MageInt;
import mage.abilities.common.DiesCreatureTriggeredAbility;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.DamageAllEffect;
import mage.abilities.keyword.WitherAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.FilterPermanent;
import mage.filter.StaticFilters;
import mage.filter.common.FilterOpponentsCreaturePermanent;
import mage.filter.predicate.permanent.CounterAnyPredicate;
import mage.game.permanent.token.TreasureToken;
import java.util.UUID;
/**
* @author PurpleCrowbar
*/
public final class VillagePillagers extends CardImpl {
private static final FilterPermanent filter
= new FilterOpponentsCreaturePermanent("a creature an opponent controls with a counter on it");
static {
filter.add(CounterAnyPredicate.instance);
}
public VillagePillagers(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}{R}");
this.subtype.add(SubType.GOBLIN, SubType.WARRIOR);
this.power = new MageInt(5);
this.toughness = new MageInt(5);
// Wither
this.addAbility(WitherAbility.getInstance());
// When this creature enters, it deals 1 damage to each creature your opponents control.
this.addAbility(new EntersBattlefieldTriggeredAbility(new DamageAllEffect(
1, StaticFilters.FILTER_OPPONENTS_PERMANENT_CREATURE
).setText("it deals 1 damage to each creature your opponents control")));
// Whenever a creature an opponent controls with a counter on it dies, you create a tapped Treasure token.
this.addAbility(new DiesCreatureTriggeredAbility(
new CreateTokenEffect(new TreasureToken(), 1, true), false, filter
));
}
private VillagePillagers(final VillagePillagers card) {
super(card);
}
@Override
public VillagePillagers copy() {
return new VillagePillagers(this);
}
}

View file

@ -167,6 +167,8 @@ public final class LorwynEclipsedCommander extends ExpansionSet {
cards.add(new SetCardInfo("Unclaimed Territory", 175, Rarity.UNCOMMON, mage.cards.u.UnclaimedTerritory.class));
cards.add(new SetCardInfo("Vernal Fen", 63, Rarity.RARE, mage.cards.v.VernalFen.class));
cards.add(new SetCardInfo("Vernal Sovereign", 135, Rarity.RARE, mage.cards.v.VernalSovereign.class));
cards.add(new SetCardInfo("Village Pillagers", 14, Rarity.RARE, mage.cards.v.VillagePillagers.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Village Pillagers", 34, Rarity.RARE, mage.cards.v.VillagePillagers.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Vraska, Betrayal's Sting", 88, Rarity.MYTHIC, mage.cards.v.VraskaBetrayalsSting.class));
cards.add(new SetCardInfo("Wickerbough Elder", 118, Rarity.COMMON, mage.cards.w.WickerboughElder.class));
cards.add(new SetCardInfo("Woodland Cemetery", 176, Rarity.RARE, mage.cards.w.WoodlandCemetery.class));