mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[NEO] Implemented Prodigy's Prototype
This commit is contained in:
parent
4409a0aa95
commit
b4b7a937eb
3 changed files with 77 additions and 0 deletions
47
Mage.Sets/src/mage/cards/p/ProdigysPrototype.java
Normal file
47
Mage.Sets/src/mage/cards/p/ProdigysPrototype.java
Normal file
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.p;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.AttacksWithCreaturesTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.CrewAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.game.permanent.token.PilotToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ProdigysPrototype extends CardImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent(SubType.VEHICLE, "");
|
||||
|
||||
public ProdigysPrototype(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}{W}{U}");
|
||||
|
||||
this.subtype.add(SubType.VEHICLE);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Whenever one or more Vehicles you control attack, create a 1/1 colorless Pilot creature token with "This creature crews Vehicles as though its power were 2 greater."
|
||||
this.addAbility(new AttacksWithCreaturesTriggeredAbility(
|
||||
new CreateTokenEffect(new PilotToken()), 1, filter
|
||||
).setTriggerPhrase("Whenever one or more Vehicles you control attack, "));
|
||||
|
||||
// Crew 2
|
||||
this.addAbility(new CrewAbility(2));
|
||||
}
|
||||
|
||||
private ProdigysPrototype(final ProdigysPrototype card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProdigysPrototype copy() {
|
||||
return new ProdigysPrototype(this);
|
||||
}
|
||||
}
|
|
@ -85,6 +85,7 @@ public final class KamigawaNeonDynasty extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Nezumi Prowler", 116, Rarity.UNCOMMON, mage.cards.n.NezumiProwler.class));
|
||||
cards.add(new SetCardInfo("Plains", 283, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Portrait of Michiko", 29, Rarity.UNCOMMON, mage.cards.p.PortraitOfMichiko.class));
|
||||
cards.add(new SetCardInfo("Prodigy's Prototype", 231, Rarity.UNCOMMON, mage.cards.p.ProdigysPrototype.class));
|
||||
cards.add(new SetCardInfo("Raiyuu, Storm's Edge", 232, Rarity.RARE, mage.cards.r.RaiyuuStormsEdge.class));
|
||||
cards.add(new SetCardInfo("Satoru Umezawa", 234, Rarity.RARE, mage.cards.s.SatoruUmezawa.class));
|
||||
cards.add(new SetCardInfo("Satsuki, the Living Lore", 235, Rarity.RARE, mage.cards.s.SatsukiTheLivingLore.class));
|
||||
|
|
29
Mage/src/main/java/mage/game/permanent/token/PilotToken.java
Normal file
29
Mage/src/main/java/mage/game/permanent/token/PilotToken.java
Normal file
|
@ -0,0 +1,29 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.CrewIncreasedPowerAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class PilotToken extends TokenImpl {
|
||||
|
||||
public PilotToken() {
|
||||
super("Pilot token", "1/1 colorless Pilot creature token with \"This creature crews Vehicles as though its power were 2 greater.\"");
|
||||
cardType.add(CardType.CREATURE);
|
||||
subtype.add(SubType.PILOT);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
addAbility(new CrewIncreasedPowerAbility("this creature"));
|
||||
}
|
||||
|
||||
public PilotToken(final PilotToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public PilotToken copy() {
|
||||
return new PilotToken(this);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue