forked from External/mage
[MIR] Implemented Dream Fighter
This commit is contained in:
parent
9d5ffd541e
commit
8a4bc80fa8
2 changed files with 48 additions and 0 deletions
47
Mage.Sets/src/mage/cards/d/DreamFighter.java
Normal file
47
Mage.Sets/src/mage/cards/d/DreamFighter.java
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.BlocksOrBecomesBlockedSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.PhaseOutSourceEffect;
|
||||
import mage.abilities.effects.common.PhaseOutTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.StaticFilters;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class DreamFighter extends CardImpl {
|
||||
|
||||
public DreamFighter(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.SOLDIER);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Whenever Dream Fighter blocks or becomes blocked by a creature, Dream Fighter and that creature phase out.
|
||||
Ability ability = new BlocksOrBecomesBlockedSourceTriggeredAbility(
|
||||
new PhaseOutSourceEffect(), StaticFilters.FILTER_PERMANENT_CREATURE,
|
||||
false, "Whenever {this} blocks or becomes blocked by a creature, " +
|
||||
"{this} and that creature phase out.", true
|
||||
);
|
||||
ability.addEffect(new PhaseOutTargetEffect());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private DreamFighter(final DreamFighter card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DreamFighter copy() {
|
||||
return new DreamFighter(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -98,6 +98,7 @@ public final class Mirage extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Drain Life", 118, Rarity.COMMON, mage.cards.d.DrainLife.class));
|
||||
cards.add(new SetCardInfo("Dread Specter", 119, Rarity.UNCOMMON, mage.cards.d.DreadSpecter.class));
|
||||
cards.add(new SetCardInfo("Dream Cache", 62, Rarity.COMMON, mage.cards.d.DreamCache.class));
|
||||
cards.add(new SetCardInfo("Dream Fighter", 63, Rarity.COMMON, mage.cards.d.DreamFighter.class));
|
||||
cards.add(new SetCardInfo("Dwarven Miner", 169, Rarity.UNCOMMON, mage.cards.d.DwarvenMiner.class));
|
||||
cards.add(new SetCardInfo("Dwarven Nomad", 170, Rarity.COMMON, mage.cards.d.DwarvenNomad.class));
|
||||
cards.add(new SetCardInfo("Early Harvest", 213, Rarity.RARE, mage.cards.e.EarlyHarvest.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue