Implemented Aerial Engineer

This commit is contained in:
Evan Kranzler 2018-06-18 20:02:53 -04:00
parent 08a9df219c
commit 29fe460c8e
3 changed files with 71 additions and 7 deletions

View file

@ -0,0 +1,66 @@
package mage.cards.a;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
import mage.abilities.decorator.ConditionalContinuousEffect;
import mage.abilities.effects.common.continuous.BoostSourceEffect;
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.SubType;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Zone;
import mage.filter.StaticFilters;
/**
*
* @author TheElk801
*/
public final class AerialEngineer extends CardImpl {
public AerialEngineer(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}{U}");
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.ARTIFICER);
this.power = new MageInt(2);
this.toughness = new MageInt(4);
// As long as you control an artifact, Aerial Engineer gets +2/+0 and has flying.
Ability ability = new SimpleStaticAbility(
Zone.BATTLEFIELD,
new ConditionalContinuousEffect(
new BoostSourceEffect(2, 0, Duration.WhileOnBattlefield),
new PermanentsOnTheBattlefieldCondition(
StaticFilters.FILTER_CONTROLLED_PERMANENT_ARTIFACT
),
"As long as you control an artifact, {this} gets +2/+0"
)
);
ability.addEffect(new ConditionalContinuousEffect(
new GainAbilitySourceEffect(
FlyingAbility.getInstance(),
Duration.WhileOnBattlefield
),
new PermanentsOnTheBattlefieldCondition(
StaticFilters.FILTER_CONTROLLED_PERMANENT_ARTIFACT
),
"and has flying"
));
this.addAbility(ability);
}
public AerialEngineer(final AerialEngineer card) {
super(card);
}
@Override
public AerialEngineer copy() {
return new AerialEngineer(this);
}
}

View file

@ -1,4 +1,3 @@
package mage.cards.s;
import java.util.UUID;
@ -17,8 +16,7 @@ import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Duration;
import mage.constants.Zone;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledArtifactPermanent;
import mage.filter.StaticFilters;
/**
*
@ -35,14 +33,13 @@ public final class ScrapyardMongrel extends CardImpl {
this.toughness = new MageInt(3);
// As long as you control an artifact, Scrapyard Mongrel gets +2/+0 and has trample.
FilterPermanent filter = new FilterControlledArtifactPermanent();
Effect boostEffect = new ConditionalContinuousEffect(
new BoostSourceEffect(2, 0, Duration.WhileOnBattlefield),
new PermanentsOnTheBattlefieldCondition(filter),
new PermanentsOnTheBattlefieldCondition(StaticFilters.FILTER_CONTROLLED_PERMANENT_ARTIFACT),
"As long as you control an artifact, {this} gets +2/+0");
Effect gainAbilityEffect = new ConditionalContinuousEffect(
new GainAbilitySourceEffect(TrampleAbility.getInstance(), Duration.WhileOnBattlefield),
new PermanentsOnTheBattlefieldCondition(filter),
new PermanentsOnTheBattlefieldCondition(StaticFilters.FILTER_CONTROLLED_PERMANENT_ARTIFACT),
"and has trample");
Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, boostEffect);
ability.addEffect(gainAbilityEffect);

View file

@ -29,6 +29,7 @@ public final class CoreSet2019 extends ExpansionSet {
this.maxCardNumberInBooster = 280;
cards.add(new SetCardInfo("Act of Treason", 127, Rarity.COMMON, mage.cards.a.ActOfTreason.class));
cards.add(new SetCardInfo("Aerial Engineer", 211, Rarity.UNCOMMON, mage.cards.a.AerialEngineer.class));
cards.add(new SetCardInfo("Aggressive Mammoth", 302, Rarity.RARE, mage.cards.a.AggressiveMammoth.class));
cards.add(new SetCardInfo("Air Elemental", 308, Rarity.UNCOMMON, mage.cards.a.AirElemental.class));
cards.add(new SetCardInfo("Ajani's Pridemate", 5, Rarity.UNCOMMON, mage.cards.a.AjanisPridemate.class));