mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[TDM] Implement Inevitable Defeat
This commit is contained in:
parent
b34aafe0c3
commit
55474322e2
2 changed files with 41 additions and 0 deletions
40
Mage.Sets/src/mage/cards/i/InevitableDefeat.java
Normal file
40
Mage.Sets/src/mage/cards/i/InevitableDefeat.java
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
package mage.cards.i;
|
||||
|
||||
import mage.abilities.common.CantBeCounteredSourceAbility;
|
||||
import mage.abilities.effects.common.ExileTargetEffect;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.abilities.effects.common.LoseLifeTargetControllerEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetNonlandPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class InevitableDefeat extends CardImpl {
|
||||
|
||||
public InevitableDefeat(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{R}{W}{B}");
|
||||
|
||||
// This spell can't be countered.
|
||||
this.addAbility(new CantBeCounteredSourceAbility());
|
||||
|
||||
// Exile target nonland permanent. Its controller loses 3 life and you gain 3 life.
|
||||
this.getSpellAbility().addEffect(new ExileTargetEffect());
|
||||
this.getSpellAbility().addEffect(new LoseLifeTargetControllerEffect(3));
|
||||
this.getSpellAbility().addEffect(new GainLifeEffect(3).concatBy("and"));
|
||||
this.getSpellAbility().addTarget(new TargetNonlandPermanent());
|
||||
}
|
||||
|
||||
private InevitableDefeat(final InevitableDefeat card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public InevitableDefeat copy() {
|
||||
return new InevitableDefeat(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -20,6 +20,7 @@ public final class TarkirDragonstorm extends ExpansionSet {
|
|||
this.blockName = "Tarkir: Dragonstorm"; // for sorting in GUI
|
||||
this.hasBasicLands = false; // temporary
|
||||
|
||||
cards.add(new SetCardInfo("Inevitable Defeat", 194, Rarity.RARE, mage.cards.i.InevitableDefeat.class));
|
||||
cards.add(new SetCardInfo("Mox Jasper", 246, Rarity.MYTHIC, mage.cards.m.MoxJasper.class));
|
||||
cards.add(new SetCardInfo("Skirmish Rhino", 224, Rarity.UNCOMMON, mage.cards.s.SkirmishRhino.class));
|
||||
cards.add(new SetCardInfo("Stormscale Scion", 123, Rarity.MYTHIC, mage.cards.s.StormscaleScion.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue