[MOM] Implement Aerial Boost

This commit is contained in:
theelk801 2023-04-06 00:01:25 -04:00
parent 40ae3b936b
commit 32a2ce4d97
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,43 @@
package mage.cards.a;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
import mage.abilities.keyword.ConvokeAbility;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class AerialBoost extends CardImpl {
public AerialBoost(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}");
// Convoke
this.addAbility(new ConvokeAbility());
// Target creature gets +2/+2 and gains flying until end of turn.
this.getSpellAbility().addEffect(new BoostTargetEffect(2, 2)
.setText("target creature gets +2/+2"));
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(
FlyingAbility.getInstance(), Duration.EndOfTurn
).setText("and gains flying until end of turn"));
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
}
private AerialBoost(final AerialBoost card) {
super(card);
}
@Override
public AerialBoost copy() {
return new AerialBoost(this);
}
}

View file

@ -25,6 +25,7 @@ public final class MarchOfTheMachine extends ExpansionSet {
this.blockName = "March of the Machine";
this.hasBoosters = false; // temporary
cards.add(new SetCardInfo("Aerial Boost", 2, Rarity.COMMON, mage.cards.a.AerialBoost.class));
cards.add(new SetCardInfo("Alabaster Host Sanctifier", 4, Rarity.COMMON, mage.cards.a.AlabasterHostSanctifier.class));
cards.add(new SetCardInfo("Archangel Elspeth", 6, Rarity.MYTHIC, mage.cards.a.ArchangelElspeth.class));
cards.add(new SetCardInfo("Archpriest of Shadows", 89, Rarity.RARE, mage.cards.a.ArchpriestOfShadows.class));