mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[LCC] Implement Master of Dark Rites (#11541)
This commit is contained in:
parent
71e8c62e8d
commit
2871762a01
2 changed files with 51 additions and 0 deletions
50
Mage.Sets/src/mage/cards/m/MasterOfDarkRites.java
Normal file
50
Mage.Sets/src/mage/cards/m/MasterOfDarkRites.java
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.Mana;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||
import mage.abilities.mana.ConditionalColoredManaAbility;
|
||||
import mage.abilities.mana.conditional.ConditionalSpellManaBuilder;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.predicate.Predicates;
|
||||
|
||||
/**
|
||||
* @author arcox
|
||||
*/
|
||||
public final class MasterOfDarkRites extends CardImpl {
|
||||
private static final FilterSpell filter = new FilterSpell("Vampire, Cleric, and/or Demon spells");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(SubType.VAMPIRE.getPredicate(), SubType.CLERIC.getPredicate(), SubType.DEMON.getPredicate()));
|
||||
}
|
||||
|
||||
public MasterOfDarkRites(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{B}");
|
||||
|
||||
this.subtype.add(SubType.VAMPIRE);
|
||||
this.subtype.add(SubType.CLERIC);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// {T}, Sacrifice another creature: Add {B}{B}{B}. Spend this mana only to cast Vampire, Cleric, and/or Demon spells.
|
||||
Ability ability = new ConditionalColoredManaAbility(Mana.BlackMana(3), new ConditionalSpellManaBuilder(filter));
|
||||
ability.addCost(new SacrificeTargetCost(StaticFilters.FILTER_CONTROLLED_ANOTHER_CREATURE));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private MasterOfDarkRites(final MasterOfDarkRites card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MasterOfDarkRites copy() {
|
||||
return new MasterOfDarkRites(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -165,6 +165,7 @@ public final class LostCavernsOfIxalanCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Malcolm, Keen-Eyed Navigator", 161, Rarity.UNCOMMON, mage.cards.m.MalcolmKeenEyedNavigator.class));
|
||||
cards.add(new SetCardInfo("Marauding Raptor", 228, Rarity.RARE, mage.cards.m.MaraudingRaptor.class));
|
||||
cards.add(new SetCardInfo("Martyr of Dusk", 132, Rarity.COMMON, mage.cards.m.MartyrOfDusk.class));
|
||||
cards.add(new SetCardInfo("Master of Dark Rites", 83, Rarity.RARE, mage.cards.m.MasterOfDarkRites.class));
|
||||
cards.add(new SetCardInfo("Master of the Pearl Trident", 162, Rarity.RARE, mage.cards.m.MasterOfThePearlTrident.class));
|
||||
cards.add(new SetCardInfo("Mavren Fein, Dusk Apostle", 133, Rarity.RARE, mage.cards.m.MavrenFeinDuskApostle.class));
|
||||
cards.add(new SetCardInfo("Merchant Raiders", 163, Rarity.UNCOMMON, mage.cards.m.MerchantRaiders.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue