mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
[KHC] Implemented Ruthless Winnower
This commit is contained in:
parent
a26d9b2fd0
commit
92bddc1565
2 changed files with 50 additions and 0 deletions
49
Mage.Sets/src/mage/cards/r/RuthlessWinnower.java
Normal file
49
Mage.Sets/src/mage/cards/r/RuthlessWinnower.java
Normal 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);
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue