mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
[WOE] Implement Hopeless Nightmare (#10876)
This commit is contained in:
parent
faf8803cab
commit
93cfb86a0f
2 changed files with 49 additions and 0 deletions
48
Mage.Sets/src/mage/cards/h/HopelessNightmare.java
Normal file
48
Mage.Sets/src/mage/cards/h/HopelessNightmare.java
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
package mage.cards.h;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.common.PutIntoGraveFromBattlefieldSourceTriggeredAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.LoseLifeOpponentsEffect;
|
||||
import mage.abilities.effects.common.SacrificeSourceEffect;
|
||||
import mage.abilities.effects.common.discard.DiscardEachPlayerEffect;
|
||||
import mage.abilities.effects.keyword.ScryEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.TargetController;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class HopelessNightmare extends CardImpl {
|
||||
|
||||
public HopelessNightmare(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{B}");
|
||||
|
||||
|
||||
// When Hopeless Nightmare enters the battlefield, each opponent discards a card and loses 2 life.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new DiscardEachPlayerEffect(TargetController.OPPONENT));
|
||||
ability.addEffect(new LoseLifeOpponentsEffect(2).setText("loses 2 life").concatBy("and"));
|
||||
this.addAbility(ability);
|
||||
|
||||
// When Hopeless Nightmare is put into a graveyard from the battlefield, scry 2.
|
||||
this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new ScryEffect(2, false)));
|
||||
|
||||
// {2}{B}: Sacrifice Hopeless Nightmare.
|
||||
this.addAbility(new SimpleActivatedAbility(new SacrificeSourceEffect(), new ManaCostsImpl("{2}{B}")));
|
||||
}
|
||||
|
||||
private HopelessNightmare(final HopelessNightmare card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HopelessNightmare copy() {
|
||||
return new HopelessNightmare(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -47,6 +47,7 @@ public final class WildsOfEldraine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Gallant Pie-Wielder", 15, Rarity.UNCOMMON, mage.cards.g.GallantPieWielder.class));
|
||||
cards.add(new SetCardInfo("Glass Casket", 16, Rarity.UNCOMMON, mage.cards.g.GlassCasket.class));
|
||||
cards.add(new SetCardInfo("Greta, Sweettooth Scourge", 205, Rarity.UNCOMMON, mage.cards.g.GretaSweettoothScourge.class));
|
||||
cards.add(new SetCardInfo("Hopeless Nightmare", 95, Rarity.COMMON, mage.cards.h.HopelessNightmare.class));
|
||||
cards.add(new SetCardInfo("Howling Galefang", 175, Rarity.UNCOMMON, mage.cards.h.HowlingGalefang.class));
|
||||
cards.add(new SetCardInfo("Island", 263, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Kellan, the Fae-Blooded", 230, Rarity.MYTHIC, mage.cards.k.KellanTheFaeBlooded.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue