[VOW] Implemented Path of Peril

This commit is contained in:
Evan Kranzler 2021-10-29 22:28:05 -04:00
parent 1bbd211ce4
commit 51ee418701
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,48 @@
package mage.cards.p;
import mage.abilities.effects.common.DestroyAllEffect;
import mage.abilities.keyword.CleaveAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.ComparisonType;
import mage.filter.FilterPermanent;
import mage.filter.StaticFilters;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.mageobject.ManaValuePredicate;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class PathOfPeril extends CardImpl {
private static final FilterPermanent filter
= new FilterCreaturePermanent("creatures [with mana value 2 or less]");
static {
filter.add(new ManaValuePredicate(ComparisonType.FEWER_THAN, 2));
}
public PathOfPeril(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{B}{B}");
// Cleave {4}{W}{B}
this.addAbility(new CleaveAbility(
this, new DestroyAllEffect(StaticFilters.FILTER_PERMANENT_CREATURES), "{4}{W}{B}"
));
// Destroy all creatures [with mana value 2 or less].
this.getSpellAbility().addEffect(new DestroyAllEffect(filter));
}
private PathOfPeril(final PathOfPeril card) {
super(card);
}
@Override
public PathOfPeril copy() {
return new PathOfPeril(this);
}
}

View file

@ -50,6 +50,7 @@ public final class InnistradCrimsonVow extends ExpansionSet {
cards.add(new SetCardInfo("Massive Might", 208, Rarity.COMMON, mage.cards.m.MassiveMight.class));
cards.add(new SetCardInfo("Mountain", 274, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS));
cards.add(new SetCardInfo("Overcharged Amalgam", 71, Rarity.RARE, mage.cards.o.OverchargedAmalgam.class));
cards.add(new SetCardInfo("Path of Peril", 124, Rarity.RARE, mage.cards.p.PathOfPeril.class));
cards.add(new SetCardInfo("Plains", 268, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));
cards.add(new SetCardInfo("Rot-Tide Gargantua", 129, Rarity.COMMON, mage.cards.r.RotTideGargantua.class));
cards.add(new SetCardInfo("Shattered Sanctum", 264, Rarity.RARE, mage.cards.s.ShatteredSanctum.class));