mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[MKM] Implement Defenestrated Phantom
This commit is contained in:
parent
f4c7486b2b
commit
d34b12ecdf
4 changed files with 74 additions and 0 deletions
41
Mage.Sets/src/mage/cards/d/DefenestratedPhantom.java
Normal file
41
Mage.Sets/src/mage/cards/d/DefenestratedPhantom.java
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.keyword.DisguiseAbility;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class DefenestratedPhantom extends CardImpl {
|
||||
|
||||
public DefenestratedPhantom(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{W}{W}");
|
||||
|
||||
this.subtype.add(SubType.SPIRIT);
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// Disguise {4}{W}
|
||||
this.addAbility(new DisguiseAbility(this, new ManaCostsImpl<>("{4}{W}")));
|
||||
}
|
||||
|
||||
private DefenestratedPhantom(final DefenestratedPhantom card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DefenestratedPhantom copy() {
|
||||
return new DefenestratedPhantom(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -36,6 +36,7 @@ public final class MurdersAtKarlovManor extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Crime Novelist", 121, Rarity.UNCOMMON, mage.cards.c.CrimeNovelist.class));
|
||||
cards.add(new SetCardInfo("Curious Cadaver", 194, Rarity.UNCOMMON, mage.cards.c.CuriousCadaver.class));
|
||||
cards.add(new SetCardInfo("Deduce", 52, Rarity.COMMON, mage.cards.d.Deduce.class));
|
||||
cards.add(new SetCardInfo("Defenestrated Phantom", 11, Rarity.COMMON, mage.cards.d.DefenestratedPhantom.class));
|
||||
cards.add(new SetCardInfo("Demand Answers", 122, Rarity.COMMON, mage.cards.d.DemandAnswers.class));
|
||||
cards.add(new SetCardInfo("Elegant Parlor", 260, Rarity.RARE, mage.cards.e.ElegantParlor.class));
|
||||
cards.add(new SetCardInfo("Fanatical Strength", 159, Rarity.COMMON, mage.cards.f.FanaticalStrength.class));
|
||||
|
|
|
|||
|
|
@ -0,0 +1,31 @@
|
|||
package mage.abilities.keyword;
|
||||
|
||||
import mage.abilities.SpellAbility;
|
||||
import mage.abilities.costs.Cost;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.cards.Card;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
* TODO: Implement this
|
||||
*/
|
||||
public class DisguiseAbility extends SpellAbility {
|
||||
|
||||
public DisguiseAbility(Card card, Cost disguiseCost) {
|
||||
super(new GenericManaCost(3), card.getName());
|
||||
}
|
||||
|
||||
private DisguiseAbility(final DisguiseAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DisguiseAbility copy() {
|
||||
return new DisguiseAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Disguise";
|
||||
}
|
||||
}
|
||||
|
|
@ -29,6 +29,7 @@ Delve|new|
|
|||
Dethrone|new|
|
||||
Devoid|color|
|
||||
Defender|instance|
|
||||
Disguise|card, cost|
|
||||
Disturb|cost|
|
||||
Dredge|number|
|
||||
Doctor's companion|instance|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue