forked from External/mage
[FDN] Implement Mischievous Mystic
This commit is contained in:
parent
d7f568ba34
commit
b0055fd2ea
3 changed files with 52 additions and 0 deletions
43
Mage.Sets/src/mage/cards/m/MischievousMystic.java
Normal file
43
Mage.Sets/src/mage/cards/m/MischievousMystic.java
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DrawNthCardTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.game.permanent.token.FaerieToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class MischievousMystic extends CardImpl {
|
||||
|
||||
public MischievousMystic(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.WIZARD);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// Whenever you draw your second card each turn, create a 1/1 blue Faerie token with flying.
|
||||
this.addAbility(new DrawNthCardTriggeredAbility(new CreateTokenEffect(new FaerieToken())));
|
||||
}
|
||||
|
||||
private MischievousMystic(final MischievousMystic card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MischievousMystic copy() {
|
||||
return new MischievousMystic(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -87,6 +87,7 @@ public final class Foundations extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Lyra Dawnbringer", 707, Rarity.MYTHIC, mage.cards.l.LyraDawnbringer.class));
|
||||
cards.add(new SetCardInfo("Maelstrom Pulse", 661, Rarity.RARE, mage.cards.m.MaelstromPulse.class));
|
||||
cards.add(new SetCardInfo("Mindsparker", 628, Rarity.UNCOMMON, mage.cards.m.Mindsparker.class));
|
||||
cards.add(new SetCardInfo("Mischievous Mystic", 47, Rarity.UNCOMMON, mage.cards.m.MischievousMystic.class));
|
||||
cards.add(new SetCardInfo("Mold Adder", 640, Rarity.UNCOMMON, mage.cards.m.MoldAdder.class));
|
||||
cards.add(new SetCardInfo("Moment of Craving", 524, Rarity.COMMON, mage.cards.m.MomentOfCraving.class));
|
||||
cards.add(new SetCardInfo("Moment of Triumph", 500, Rarity.COMMON, mage.cards.m.MomentOfTriumph.class));
|
||||
|
|
|
|||
|
|
@ -24,6 +24,14 @@ public class DrawNthCardTriggeredAbility extends TriggeredAbilityImpl {
|
|||
private final TargetController targetController;
|
||||
private final int cardNumber;
|
||||
|
||||
public DrawNthCardTriggeredAbility(Effect effect) {
|
||||
this(effect, false);
|
||||
}
|
||||
|
||||
public DrawNthCardTriggeredAbility(Effect effect, boolean optional) {
|
||||
this(effect, optional, 2);
|
||||
}
|
||||
|
||||
public DrawNthCardTriggeredAbility(Effect effect, boolean optional, int cardNumber) {
|
||||
this(effect, optional, TargetController.YOU, cardNumber);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue