mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
implement [MH3] Genku, Future Shaper
This commit is contained in:
parent
28d697e9e9
commit
8ec4ffd9de
5 changed files with 185 additions and 0 deletions
88
Mage.Sets/src/mage/cards/g/GenkuFutureShaper.java
Normal file
88
Mage.Sets/src/mage/cards/g/GenkuFutureShaper.java
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.common.LeavesBattlefieldAllTriggeredAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersAllEffect;
|
||||
import mage.abilities.hint.common.ModesAlreadyUsedHint;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.mageobject.AnotherPredicate;
|
||||
import mage.filter.predicate.permanent.TokenPredicate;
|
||||
import mage.game.permanent.token.Fox22VigilanceToken;
|
||||
import mage.game.permanent.token.Moonfolk12FlyingToken;
|
||||
import mage.game.permanent.token.Rat11LifelinkToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class GenkuFutureShaper extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterControlledPermanent("another nontoken permanent you control");
|
||||
|
||||
static {
|
||||
filter.add(AnotherPredicate.instance);
|
||||
filter.add(TokenPredicate.FALSE);
|
||||
}
|
||||
|
||||
public GenkuFutureShaper(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}{U}");
|
||||
|
||||
this.supertype.add(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.MOONFOLK);
|
||||
this.subtype.add(SubType.WIZARD);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(5);
|
||||
|
||||
// Whenever another nontoken permanent you control leaves the battlefield, choose one that hasn't been chosen this turn. Create a creature token with those characteristics.
|
||||
// * 2/2 white Fox with vigilance.
|
||||
// * 1/2 blue Moonfolk with flying.
|
||||
// * 1/1 black Rat with lifelink.
|
||||
Ability ability = new LeavesBattlefieldAllTriggeredAbility(
|
||||
new CreateTokenEffect(new Fox22VigilanceToken()), filter, false
|
||||
);
|
||||
ability.setModeTag("2/2 white Fox with vigilance");
|
||||
ability.getModes().setLimitUsageByOnce(true);
|
||||
|
||||
// • Create a tapped Treasure token.
|
||||
ability.addMode(
|
||||
new Mode(new CreateTokenEffect(new Moonfolk12FlyingToken()))
|
||||
.setModeTag("1/2 blue Moonfolk with flying")
|
||||
);
|
||||
// • You gain 2 life.
|
||||
ability.addMode(
|
||||
new Mode(new CreateTokenEffect(new Rat11LifelinkToken()))
|
||||
.setModeTag("1/1 black Rat with lifelink")
|
||||
);
|
||||
ability.addHint(ModesAlreadyUsedHint.instance);
|
||||
this.addAbility(ability);
|
||||
|
||||
// {3}{W}{U}: Put a +1/+1 counter on each creature you control.
|
||||
this.addAbility(new SimpleActivatedAbility(
|
||||
new AddCountersAllEffect(CounterType.P1P1.createInstance(), StaticFilters.FILTER_CONTROLLED_CREATURE),
|
||||
new ManaCostsImpl<>("{3}{W}{U}")
|
||||
));
|
||||
}
|
||||
|
||||
private GenkuFutureShaper(final GenkuFutureShaper card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GenkuFutureShaper copy() {
|
||||
return new GenkuFutureShaper(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -125,6 +125,7 @@ public final class ModernHorizons3 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Frogmyr Enforcer", 120, Rarity.UNCOMMON, mage.cards.f.FrogmyrEnforcer.class));
|
||||
cards.add(new SetCardInfo("Furnace Hellkite", 121, Rarity.UNCOMMON, mage.cards.f.FurnaceHellkite.class));
|
||||
cards.add(new SetCardInfo("Galvanic Discharge", 122, Rarity.COMMON, mage.cards.g.GalvanicDischarge.class));
|
||||
cards.add(new SetCardInfo("Genku, Future Shaper", 186, Rarity.RARE, mage.cards.g.GenkuFutureShaper.class));
|
||||
cards.add(new SetCardInfo("Ghostfire Slice", 123, Rarity.UNCOMMON, mage.cards.g.GhostfireSlice.class));
|
||||
cards.add(new SetCardInfo("Gift of the Viper", 156, Rarity.COMMON, mage.cards.g.GiftOfTheViper.class));
|
||||
cards.add(new SetCardInfo("Glaring Fleshraker", 7, Rarity.UNCOMMON, mage.cards.g.GlaringFleshraker.class));
|
||||
|
|
|
|||
|
|
@ -0,0 +1,32 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.VigilanceAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class Fox22VigilanceToken extends TokenImpl {
|
||||
|
||||
public Fox22VigilanceToken() {
|
||||
super("Fox Token", "2/2 white Fox creature token with vigilance");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setWhite(true);
|
||||
subtype.add(SubType.FOX);
|
||||
power = new MageInt(2);
|
||||
toughness = new MageInt(2);
|
||||
|
||||
this.addAbility(VigilanceAbility.getInstance());
|
||||
}
|
||||
|
||||
private Fox22VigilanceToken(final Fox22VigilanceToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Fox22VigilanceToken copy() {
|
||||
return new Fox22VigilanceToken(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class Moonfolk12FlyingToken extends TokenImpl {
|
||||
|
||||
public Moonfolk12FlyingToken() {
|
||||
super("Moonfolk Token", "1/2 blue Moonfolk creature token with flying");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlue(true);
|
||||
subtype.add(SubType.MOONFOLK);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(2);
|
||||
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
}
|
||||
|
||||
private Moonfolk12FlyingToken(final Moonfolk12FlyingToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Moonfolk12FlyingToken copy() {
|
||||
return new Moonfolk12FlyingToken(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.LifelinkAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class Rat11LifelinkToken extends TokenImpl {
|
||||
|
||||
public Rat11LifelinkToken() {
|
||||
super("Rat Token", "1/1 black Rat creature token with lifelink");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setBlack(true);
|
||||
subtype.add(SubType.RAT);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
this.addAbility(LifelinkAbility.getInstance());
|
||||
}
|
||||
|
||||
private Rat11LifelinkToken(final Rat11LifelinkToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Rat11LifelinkToken copy() {
|
||||
return new Rat11LifelinkToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue