From ec847571499016554bb7ca9f723eb1e06052f2c3 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Fri, 27 Jan 2023 08:59:06 -0500 Subject: [PATCH] [ONE] Implement Aspirant's Ascent --- .../src/mage/cards/a/AspirantsAscent.java | 40 +++++++++++++++++++ .../src/mage/sets/PhyrexiaAllWillBeOne.java | 1 + 2 files changed, 41 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AspirantsAscent.java diff --git a/Mage.Sets/src/mage/cards/a/AspirantsAscent.java b/Mage.Sets/src/mage/cards/a/AspirantsAscent.java new file mode 100644 index 00000000000..335e03d7ab4 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AspirantsAscent.java @@ -0,0 +1,40 @@ +package mage.cards.a; + +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.abilities.keyword.ToxicAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class AspirantsAscent extends CardImpl { + + public AspirantsAscent(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}"); + + // Until end of turn, target creature gets +1/+3 and gains flying and toxic 1. + this.getSpellAbility().addEffect(new BoostTargetEffect(1, 3) + .setText("until end of turn, target creature gets +1/+3")); + this.getSpellAbility().addEffect(new GainAbilityTargetEffect(FlyingAbility.getInstance()) + .setText("and gains flying")); + this.getSpellAbility().addEffect(new GainAbilityTargetEffect(new ToxicAbility(1)) + .setText("and toxic 1")); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + } + + private AspirantsAscent(final AspirantsAscent card) { + super(card); + } + + @Override + public AspirantsAscent copy() { + return new AspirantsAscent(this); + } +} diff --git a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java index 3bac3b70941..be03057dd93 100644 --- a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java +++ b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java @@ -28,6 +28,7 @@ public final class PhyrexiaAllWillBeOne extends ExpansionSet { cards.add(new SetCardInfo("Archfiend of the Dross", 82, Rarity.RARE, mage.cards.a.ArchfiendOfTheDross.class)); cards.add(new SetCardInfo("Argentum Masticore", 222, Rarity.RARE, mage.cards.a.ArgentumMasticore.class)); cards.add(new SetCardInfo("Armored Scrapgorger", 158, Rarity.UNCOMMON, mage.cards.a.ArmoredScrapgorger.class)); + cards.add(new SetCardInfo("Aspirant's Ascent", 40, Rarity.COMMON, mage.cards.a.AspirantsAscent.class)); cards.add(new SetCardInfo("Atraxa, Grand Unifier", 196, Rarity.MYTHIC, mage.cards.a.AtraxaGrandUnifier.class)); cards.add(new SetCardInfo("Barbed Batterfist", 121, Rarity.COMMON, mage.cards.b.BarbedBatterfist.class)); cards.add(new SetCardInfo("Basilica Shepherd", 4, Rarity.COMMON, mage.cards.b.BasilicaShepherd.class));