[CMR] Implemented Slash the Ranks

This commit is contained in:
Evan Kranzler 2020-10-29 19:20:18 -04:00
parent 74a7b629d1
commit a9eb6a15fb
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,41 @@
package mage.cards.s;
import mage.abilities.effects.common.DestroyAllEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterCreatureOrPlaneswalkerPermanent;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.permanent.CommanderPredicate;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class SlashTheRanks extends CardImpl {
private static final FilterPermanent filter
= new FilterCreatureOrPlaneswalkerPermanent("creatures and planeswalkers except for commanders");
static {
filter.add(Predicates.not(CommanderPredicate.instance));
}
public SlashTheRanks(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{W}{W}");
// Destroy all creatures and planeswalkers except for commanders.
this.getSpellAbility().addEffect(new DestroyAllEffect(filter));
}
private SlashTheRanks(final SlashTheRanks card) {
super(card);
}
@Override
public SlashTheRanks copy() {
return new SlashTheRanks(this);
}
}

View file

@ -105,6 +105,7 @@ public final class CommanderLegends extends ExpansionSet {
cards.add(new SetCardInfo("Silas Renn, Seeker Adept", 536, Rarity.MYTHIC, mage.cards.s.SilasRennSeekerAdept.class));
cards.add(new SetCardInfo("Siren Stormtamer", 96, Rarity.UNCOMMON, mage.cards.s.SirenStormtamer.class));
cards.add(new SetCardInfo("Sky Diamond", 341, Rarity.UNCOMMON, mage.cards.s.SkyDiamond.class));
cards.add(new SetCardInfo("Slash the Ranks", 47, Rarity.RARE, mage.cards.s.SlashTheRanks.class));
cards.add(new SetCardInfo("Spectator Seating", 356, Rarity.RARE, mage.cards.s.SpectatorSeating.class));
cards.add(new SetCardInfo("Staff of Domination", 343, Rarity.RARE, mage.cards.s.StaffOfDomination.class));
cards.add(new SetCardInfo("Supreme Will", 102, Rarity.UNCOMMON, mage.cards.s.SupremeWill.class));