mirror of
https://github.com/correl/mage.git
synced 2025-04-09 09:11:05 -09:00
Implemented Mu Yanling, Sky Dancer
This commit is contained in:
parent
ce42085c79
commit
33986bebfe
4 changed files with 122 additions and 0 deletions
Mage.Sets/src/mage
Mage/src/main/java/mage/game
60
Mage.Sets/src/mage/cards/m/MuYanlingSkyDancer.java
Normal file
60
Mage.Sets/src/mage/cards/m/MuYanlingSkyDancer.java
Normal file
|
@ -0,0 +1,60 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.LoyaltyAbility;
|
||||
import mage.abilities.common.PlaneswalkerEntersWithLoyaltyCountersAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.GetEmblemEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.LoseAbilityTargetEffect;
|
||||
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.constants.SuperType;
|
||||
import mage.game.command.emblems.MuYanlingSkyDancerEmblem;
|
||||
import mage.game.permanent.token.MuYanlingSkyDancerToken;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class MuYanlingSkyDancer extends CardImpl {
|
||||
|
||||
public MuYanlingSkyDancer(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.PLANESWALKER}, "{1}{U}{U}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.YANLING);
|
||||
this.addAbility(new PlaneswalkerEntersWithLoyaltyCountersAbility(2));
|
||||
|
||||
// +2: Until your next turn, up to one target creature gets -2/-0 and loses flying.
|
||||
Ability ability = new LoyaltyAbility(new BoostTargetEffect(
|
||||
-2, 0, Duration.UntilYourNextTurn
|
||||
).setText("Until your next turn, up to one target creature gets -2/-0"), 2);
|
||||
ability.addEffect(new LoseAbilityTargetEffect(
|
||||
FlyingAbility.getInstance(), Duration.UntilYourNextTurn
|
||||
).setText("and loses flying"));
|
||||
ability.addTarget(new TargetCreaturePermanent(0, 1));
|
||||
this.addAbility(ability);
|
||||
|
||||
// −3: Create a 4/4 blue Elemental Bird creature token with flying.
|
||||
this.addAbility(new LoyaltyAbility(new CreateTokenEffect(new MuYanlingSkyDancerToken()), -3));
|
||||
|
||||
// −8: You get an emblem with "Islands you control have '{T}: Draw a card'."
|
||||
this.addAbility(new LoyaltyAbility(new GetEmblemEffect(new MuYanlingSkyDancerEmblem())));
|
||||
}
|
||||
|
||||
private MuYanlingSkyDancer(final MuYanlingSkyDancer card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MuYanlingSkyDancer copy() {
|
||||
return new MuYanlingSkyDancer(this);
|
||||
}
|
||||
}
|
|
@ -78,6 +78,7 @@ public final class CoreSet2020 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Loyal Pegasus", 28, Rarity.UNCOMMON, mage.cards.l.LoyalPegasus.class));
|
||||
cards.add(new SetCardInfo("Manifold Key", 230, Rarity.UNCOMMON, mage.cards.m.ManifoldKey.class));
|
||||
cards.add(new SetCardInfo("Moldervine Reclamation", 214, Rarity.UNCOMMON, mage.cards.m.MoldervineReclamation.class));
|
||||
cards.add(new SetCardInfo("Mu Yanling, Sky Dancer", 68, Rarity.MYTHIC, mage.cards.m.MuYanlingSkyDancer.class));
|
||||
cards.add(new SetCardInfo("Negate", 69, Rarity.COMMON, mage.cards.n.Negate.class));
|
||||
cards.add(new SetCardInfo("Octoprophet", 70, Rarity.COMMON, mage.cards.o.Octoprophet.class));
|
||||
cards.add(new SetCardInfo("Ogre Siegebreaker", 215, Rarity.UNCOMMON, mage.cards.o.OgreSiegebreaker.class));
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
package mage.game.command.emblems;
|
||||
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.game.command.Emblem;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class MuYanlingSkyDancerEmblem extends Emblem {
|
||||
|
||||
private static final FilterPermanent filter
|
||||
= new FilterControlledPermanent(SubType.ISLAND, "Islands you control");
|
||||
|
||||
// "Islands you control have '{T}: Draw a card'."
|
||||
public MuYanlingSkyDancerEmblem() {
|
||||
this.setName("Emblem Yanling");
|
||||
this.getAbilities().add(new SimpleStaticAbility(
|
||||
Zone.COMMAND,
|
||||
new GainAbilityControlledEffect(new SimpleActivatedAbility(
|
||||
new DrawCardSourceControllerEffect(1), new TapSourceCost()
|
||||
), Duration.EndOfGame, filter)
|
||||
));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
public final class MuYanlingSkyDancerToken extends TokenImpl {
|
||||
|
||||
public MuYanlingSkyDancerToken() {
|
||||
super("Elemental Bird", "4/4 blue Elemental Bird creature token with flying");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlue(true);
|
||||
subtype.add(SubType.ELEMENTAL);
|
||||
subtype.add(SubType.BIRD);
|
||||
power = new MageInt(4);
|
||||
toughness = new MageInt(4);
|
||||
addAbility(FlyingAbility.getInstance());
|
||||
}
|
||||
|
||||
private MuYanlingSkyDancerToken(final MuYanlingSkyDancerToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public MuYanlingSkyDancerToken copy() {
|
||||
return new MuYanlingSkyDancerToken(this);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue