mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[ONE]Implement Annihilating glare (#9922)
* Added Annihilating Glare * Added cost and effect * Edited Costs * Edited Costs * Edited Costs * Tested Card and did some housekeeping on code. Works as intended. * Cleaned up Costs --------- Co-authored-by: AhmadYProjects <yousufa@kean.edu>
This commit is contained in:
parent
7c6286df23
commit
e43576baec
2 changed files with 46 additions and 0 deletions
45
Mage.Sets/src/mage/cards/a/AnnihilatingGlare.java
Normal file
45
Mage.Sets/src/mage/cards/a/AnnihilatingGlare.java
Normal file
|
@ -0,0 +1,45 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import mage.abilities.costs.Cost;
|
||||
import mage.abilities.costs.OrCost;
|
||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.common.TargetControlledPermanent;
|
||||
import mage.target.common.TargetCreatureOrPlaneswalker;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author AhmadYProjects
|
||||
*/
|
||||
public final class AnnihilatingGlare extends CardImpl {
|
||||
|
||||
public AnnihilatingGlare(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{B}");
|
||||
|
||||
|
||||
// As an additional cost to cast this spell, pay {4} or sacrifice an artifact or creature.
|
||||
this.getSpellAbility().addCost(new OrCost("pay {4} or sacrifice an artifact or creature",
|
||||
new GenericManaCost(4),
|
||||
new SacrificeTargetCost(new TargetControlledPermanent(StaticFilters.FILTER_CONTROLLED_PERMANENT_ARTIFACT_OR_CREATURE))
|
||||
));
|
||||
// Destroy target creature or planeswalker.
|
||||
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker());
|
||||
}
|
||||
|
||||
private AnnihilatingGlare(final AnnihilatingGlare card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AnnihilatingGlare copy() {
|
||||
return new AnnihilatingGlare(this);
|
||||
}
|
||||
}
|
|
@ -25,6 +25,7 @@ public final class PhyrexiaAllWillBeOne extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("All Will Be One", 352, Rarity.MYTHIC, mage.cards.a.AllWillBeOne.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Ambulatory Edifice", 79, Rarity.UNCOMMON, mage.cards.a.AmbulatoryEdifice.class));
|
||||
cards.add(new SetCardInfo("Annex Sentry", 2, Rarity.UNCOMMON, mage.cards.a.AnnexSentry.class));
|
||||
cards.add(new SetCardInfo("Annihilating Glare", 80, Rarity.COMMON, mage.cards.a.AnnihilatingGlare.class));
|
||||
cards.add(new SetCardInfo("Anoint with Affliction", 81, Rarity.COMMON, mage.cards.a.AnointWithAffliction.class));
|
||||
cards.add(new SetCardInfo("Apostle of Invasion", 3, Rarity.UNCOMMON, mage.cards.a.ApostleOfInvasion.class));
|
||||
cards.add(new SetCardInfo("Archfiend of the Dross", 82, Rarity.RARE, mage.cards.a.ArchfiendOfTheDross.class));
|
||||
|
|
Loading…
Reference in a new issue