[FDN] Implement Blasphemous Edict

This commit is contained in:
ciaccona007 2024-11-02 14:57:50 -04:00
parent a9fb92c2dd
commit defc7cec70
2 changed files with 55 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));