forked from External/mage
[WOE] Implement Dream Spoilers (#10964)
Co-authored-by: Evan Kranzler <theelk801@gmail.com>
This commit is contained in:
parent
1e0d935d8f
commit
6002efb7d2
2 changed files with 55 additions and 0 deletions
54
Mage.Sets/src/mage/cards/d/DreamSpoilers.java
Normal file
54
Mage.Sets/src/mage/cards/d/DreamSpoilers.java
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.condition.common.OnOpponentsTurnCondition;
|
||||
import mage.abilities.decorator.ConditionalTriggeredAbility;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.target.common.TargetOpponentsCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class DreamSpoilers extends CardImpl {
|
||||
|
||||
public DreamSpoilers(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}");
|
||||
this.subtype.add(SubType.FAERIE);
|
||||
this.subtype.add(SubType.WARLOCK);
|
||||
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// Whenever you cast a spell during an opponent's turn, up to one target creature an opponent controls gets -1/-1 until end of turn.
|
||||
Ability ability = new ConditionalTriggeredAbility(
|
||||
new SpellCastControllerTriggeredAbility(
|
||||
new BoostTargetEffect(-1, -1, Duration.EndOfTurn), false
|
||||
), OnOpponentsTurnCondition.instance, "Whenever you cast a spell during an opponent's "
|
||||
+ "turn, up to one target creature an opponent controls gets -1/-1 until end of turn."
|
||||
);
|
||||
ability.addTarget(new TargetOpponentsCreaturePermanent(0, 1));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private DreamSpoilers(final DreamSpoilers card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DreamSpoilers copy() {
|
||||
return new DreamSpoilers(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -49,6 +49,7 @@ public final class WildsOfEldraine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Cut In", 125, Rarity.COMMON, mage.cards.c.CutIn.class));
|
||||
cards.add(new SetCardInfo("Decadent Dragon", 223, Rarity.RARE, mage.cards.d.DecadentDragon.class));
|
||||
cards.add(new SetCardInfo("Discerning Financier", 10, Rarity.UNCOMMON, mage.cards.d.DiscerningFinancier.class));
|
||||
cards.add(new SetCardInfo("Dream Spoilers", 85, Rarity.UNCOMMON, mage.cards.d.DreamSpoilers.class));
|
||||
cards.add(new SetCardInfo("Disdainful Stroke", 47, Rarity.UNCOMMON, mage.cards.d.DisdainfulStroke.class));
|
||||
cards.add(new SetCardInfo("Dutiful Griffin", 11, Rarity.UNCOMMON, mage.cards.d.DutifulGriffin.class));
|
||||
cards.add(new SetCardInfo("Edgewall Inn", 255, Rarity.UNCOMMON, mage.cards.e.EdgewallInn.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue