[KHC] Implemented Ruthless Winnower

This commit is contained in:
Evan Kranzler 2021-01-22 13:17:48 -05:00
parent a26d9b2fd0
commit 92bddc1565
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,49 @@
package mage.cards.r;
import mage.MageInt;
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
import mage.abilities.effects.common.SacrificeEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.TargetController;
import mage.filter.FilterPermanent;
import mage.filter.predicate.Predicates;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class RuthlessWinnower extends CardImpl {
private static final FilterPermanent filter = new FilterPermanent("a non-Elf creature");
static {
filter.add(Predicates.not(SubType.ELF.getPredicate()));
}
public RuthlessWinnower(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}{B}");
this.subtype.add(SubType.ELF);
this.subtype.add(SubType.ROGUE);
this.power = new MageInt(4);
this.toughness = new MageInt(4);
// At the beginning of each player's upkeep, that player sacrifices a non-Elf creature.
this.addAbility(new BeginningOfUpkeepTriggeredAbility(
new SacrificeEffect(filter, 1, "that player"), TargetController.ANY, false
));
}
private RuthlessWinnower(final RuthlessWinnower card) {
super(card);
}
@Override
public RuthlessWinnower copy() {
return new RuthlessWinnower(this);
}
}

View file

@ -36,6 +36,7 @@ public final class KaldheimCommander extends ExpansionSet {
cards.add(new SetCardInfo("Elderfang Venom", 15, Rarity.RARE, mage.cards.e.ElderfangVenom.class));
cards.add(new SetCardInfo("Inspired Sphinx", 40, Rarity.MYTHIC, mage.cards.i.InspiredSphinx.class));
cards.add(new SetCardInfo("Lathril, Blade of the Elves", 1, Rarity.MYTHIC, mage.cards.l.LathrilBladeOfTheElves.class));
cards.add(new SetCardInfo("Ruthless Winnower", 10, Rarity.RARE, mage.cards.r.RuthlessWinnower.class));
cards.add(new SetCardInfo("Spectral Deluge", 7, Rarity.RARE, mage.cards.s.SpectralDeluge.class));
cards.removeIf(setCardInfo -> unfinished.contains(setCardInfo.getName())); // remove when mechanic is fully implemented