mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
[STX] Implemented Decisive Denial
This commit is contained in:
parent
4db7db2bd9
commit
f74e018682
2 changed files with 46 additions and 0 deletions
45
Mage.Sets/src/mage/cards/d/DecisiveDenial.java
Normal file
45
Mage.Sets/src/mage/cards/d/DecisiveDenial.java
Normal file
|
@ -0,0 +1,45 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.CounterUnlessPaysEffect;
|
||||
import mage.abilities.effects.common.FightTargetsEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.TargetSpell;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class DecisiveDenial extends CardImpl {
|
||||
|
||||
public DecisiveDenial(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{G}{U}");
|
||||
|
||||
// Choose one —
|
||||
// • Target creature you control fights target creature you don't control.
|
||||
this.getSpellAbility().addEffect(new FightTargetsEffect());
|
||||
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent(StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL));
|
||||
|
||||
// • Counter target noncreature spell unless its controller pays {3}.
|
||||
Mode mode = new Mode(new CounterUnlessPaysEffect(new GenericManaCost(3)));
|
||||
mode.addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_NON_CREATURE));
|
||||
this.getSpellAbility().addMode(mode);
|
||||
}
|
||||
|
||||
private DecisiveDenial(final DecisiveDenial card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DecisiveDenial copy() {
|
||||
return new DecisiveDenial(this);
|
||||
}
|
||||
}
|
|
@ -62,6 +62,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Culmination of Studies", 173, Rarity.RARE, mage.cards.c.CulminationOfStudies.class));
|
||||
cards.add(new SetCardInfo("Curate", 40, Rarity.COMMON, mage.cards.c.Curate.class));
|
||||
cards.add(new SetCardInfo("Daemogoth Titan", 174, Rarity.RARE, mage.cards.d.DaemogothTitan.class));
|
||||
cards.add(new SetCardInfo("Decisive Denial", 177, Rarity.UNCOMMON, mage.cards.d.DecisiveDenial.class));
|
||||
cards.add(new SetCardInfo("Defend the Campus", 12, Rarity.COMMON, mage.cards.d.DefendTheCampus.class));
|
||||
cards.add(new SetCardInfo("Double Major", 179, Rarity.RARE, mage.cards.d.DoubleMajor.class));
|
||||
cards.add(new SetCardInfo("Dragonsguard Elite", 127, Rarity.RARE, mage.cards.d.DragonsguardElite.class));
|
||||
|
|
Loading…
Reference in a new issue