From 32a2ce4d97ab5bea017c77b1ab2fbe5820d49008 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Thu, 6 Apr 2023 00:01:25 -0400 Subject: [PATCH] [MOM] Implement Aerial Boost --- Mage.Sets/src/mage/cards/a/AerialBoost.java | 43 +++++++++++++++++++ .../src/mage/sets/MarchOfTheMachine.java | 1 + 2 files changed, 44 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AerialBoost.java diff --git a/Mage.Sets/src/mage/cards/a/AerialBoost.java b/Mage.Sets/src/mage/cards/a/AerialBoost.java new file mode 100644 index 00000000000..a76ac183a76 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AerialBoost.java @@ -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); + } +} diff --git a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java index 3f5e4f283a2..a7869ee9c60 100644 --- a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java +++ b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java @@ -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));