diff --git a/Mage.Sets/src/mage/cards/b/BlasphemousEdict.java b/Mage.Sets/src/mage/cards/b/BlasphemousEdict.java new file mode 100644 index 00000000000..4521e46fb75 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BlasphemousEdict.java @@ -0,0 +1,54 @@ +package mage.cards.b; + +import mage.abilities.Ability; +import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition; +import mage.abilities.costs.AlternativeCostSourceAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount; +import mage.abilities.effects.Effect; +import mage.abilities.effects.common.SacrificeAllEffect; +import mage.abilities.hint.ValueHint; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.ComparisonType; +import mage.filter.StaticFilters; +import mage.filter.common.FilterCreaturePermanent; + +import java.util.UUID; + +/** + * + * @author ciaccona007 + */ +public final class BlasphemousEdict extends CardImpl { + + public BlasphemousEdict(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{B}{B}"); + + // You may pay {B} rather than pay this spell's mana cost if there are thirteen or more creatures on the battlefield. + Ability ability = new AlternativeCostSourceAbility(new ManaCostsImpl<>("{B}"), new PermanentsOnTheBattlefieldCondition( + new FilterCreaturePermanent("If there are thirteen or more creatures on the battlefield"), + ComparisonType.OR_GREATER, + 13, + false + )); + ability.setRuleAtTheTop(true); + ability.addHint(new ValueHint("Creatures on the battlefield", new PermanentsOnBattlefieldCount(new FilterCreaturePermanent()))); + this.addAbility(ability); + + // Each player sacrifices thirteen creatures of their choice. + Effect effect = new SacrificeAllEffect(13, StaticFilters.FILTER_PERMANENT_CREATURES) + .setText("Each player sacrifices thirteen creatures of their choice"); + this.getSpellAbility().addEffect(effect); + } + + private BlasphemousEdict(final BlasphemousEdict card) { + super(card); + } + + @Override + public BlasphemousEdict copy() { + return new BlasphemousEdict(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Foundations.java b/Mage.Sets/src/mage/sets/Foundations.java index 0cd1be7211f..4f9c3145241 100644 --- a/Mage.Sets/src/mage/sets/Foundations.java +++ b/Mage.Sets/src/mage/sets/Foundations.java @@ -71,6 +71,7 @@ public final class Foundations extends ExpansionSet { cards.add(new SetCardInfo("Bishop's Soldier", 491, Rarity.COMMON, mage.cards.b.BishopsSoldier.class)); cards.add(new SetCardInfo("Bite Down", 212, Rarity.COMMON, mage.cards.b.BiteDown.class)); cards.add(new SetCardInfo("Blanchwood Armor", 213, Rarity.UNCOMMON, mage.cards.b.BlanchwoodArmor.class)); + cards.add(new SetCardInfo("Blasphemous Edict", 57, Rarity.RARE, mage.cards.b.BlasphemousEdict.class)); cards.add(new SetCardInfo("Bloodfell Caves", 259, Rarity.COMMON, mage.cards.b.BloodfellCaves.class)); cards.add(new SetCardInfo("Bloodthirsty Conqueror", 58, Rarity.MYTHIC, mage.cards.b.BloodthirstyConqueror.class)); cards.add(new SetCardInfo("Bloodtithe Collector", 516, Rarity.UNCOMMON, mage.cards.b.BloodtitheCollector.class));