mirror of
https://github.com/correl/mage.git
synced 2024-12-28 19:19:20 +00:00
[MOM] Implement Flywheel Racer
This commit is contained in:
parent
c5e70489de
commit
f4ae69299c
2 changed files with 58 additions and 0 deletions
57
Mage.Sets/src/mage/cards/f/FlywheelRacer.java
Normal file
57
Mage.Sets/src/mage/cards/f/FlywheelRacer.java
Normal file
|
@ -0,0 +1,57 @@
|
|||
package mage.cards.f;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.SourceMatchesFilterCondition;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.effects.mana.AddManaOfAnyColorEffect;
|
||||
import mage.abilities.keyword.CrewAbility;
|
||||
import mage.abilities.keyword.VigilanceAbility;
|
||||
import mage.abilities.mana.ActivateIfConditionManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.StaticFilters;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class FlywheelRacer extends CardImpl {
|
||||
|
||||
private static final Condition condition = new SourceMatchesFilterCondition(
|
||||
"{this} is a creature", StaticFilters.FILTER_PERMANENT_CREATURE
|
||||
);
|
||||
|
||||
public FlywheelRacer(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
|
||||
|
||||
this.subtype.add(SubType.VEHICLE);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Vigilance
|
||||
this.addAbility(VigilanceAbility.getInstance());
|
||||
|
||||
// {T}: Add one mana of any color. Activate only if Flywheel Racer is a creature.
|
||||
this.addAbility(new ActivateIfConditionManaAbility(
|
||||
Zone.BATTLEFIELD, new AddManaOfAnyColorEffect(),
|
||||
new TapSourceCost(), condition
|
||||
));
|
||||
|
||||
// Crew 1
|
||||
this.addAbility(new CrewAbility(1));
|
||||
}
|
||||
|
||||
private FlywheelRacer(final FlywheelRacer card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FlywheelRacer copy() {
|
||||
return new FlywheelRacer(this);
|
||||
}
|
||||
}
|
|
@ -88,6 +88,7 @@ public final class MarchOfTheMachine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Fairgrounds Trumpeter", 335, Rarity.COMMON, mage.cards.f.FairgroundsTrumpeter.class));
|
||||
cards.add(new SetCardInfo("Fearless Skald", 138, Rarity.UNCOMMON, mage.cards.f.FearlessSkald.class));
|
||||
cards.add(new SetCardInfo("Final Flourish", 104, Rarity.COMMON, mage.cards.f.FinalFlourish.class));
|
||||
cards.add(new SetCardInfo("Flywheel Racer", 259, Rarity.COMMON, mage.cards.f.FlywheelRacer.class));
|
||||
cards.add(new SetCardInfo("Forest", 281, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Furnace Gremlin", 139, Rarity.UNCOMMON, mage.cards.f.FurnaceGremlin.class));
|
||||
cards.add(new SetCardInfo("Furnace Host Charger", 140, Rarity.COMMON, mage.cards.f.FurnaceHostCharger.class));
|
||||
|
|
Loading…
Reference in a new issue