From 20491d91411de6d83c72c9850feaaede1506fcc4 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Thu, 6 Apr 2023 08:52:17 -0400 Subject: [PATCH] [MOM] Implement Arachnoid Adaptation --- .../src/mage/cards/a/ArachnoidAdaptation.java | 42 +++++++++++++++++++ .../src/mage/sets/MarchOfTheMachine.java | 1 + 2 files changed, 43 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/ArachnoidAdaptation.java diff --git a/Mage.Sets/src/mage/cards/a/ArachnoidAdaptation.java b/Mage.Sets/src/mage/cards/a/ArachnoidAdaptation.java new file mode 100644 index 0000000000..d37e718db3 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/ArachnoidAdaptation.java @@ -0,0 +1,42 @@ +package mage.cards.a; + +import mage.abilities.effects.common.UntapTargetEffect; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +import mage.abilities.keyword.ReachAbility; +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 ArachnoidAdaptation extends CardImpl { + + public ArachnoidAdaptation(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{G}"); + + // Target creature gets +2/+2 and gains reach until end of turn. Untap it. + this.getSpellAbility().addEffect(new BoostTargetEffect( + 2, 2, Duration.EndOfTurn + ).setText("target creature gets +2/+2")); + this.getSpellAbility().addEffect(new GainAbilityTargetEffect( + ReachAbility.getInstance(), Duration.EndOfTurn + ).setText("and gains reach until end of turn")); + this.getSpellAbility().addEffect(new UntapTargetEffect().setText("untap it")); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + } + + private ArachnoidAdaptation(final ArachnoidAdaptation card) { + super(card); + } + + @Override + public ArachnoidAdaptation copy() { + return new ArachnoidAdaptation(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java index 600b85736f..30efc6f07a 100644 --- a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java +++ b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java @@ -29,6 +29,7 @@ public final class MarchOfTheMachine extends ExpansionSet { cards.add(new SetCardInfo("Aetherblade Agent", 88, Rarity.COMMON, mage.cards.a.AetherbladeAgent.class)); cards.add(new SetCardInfo("Akki Scrapchomper", 130, Rarity.COMMON, mage.cards.a.AkkiScrapchomper.class)); cards.add(new SetCardInfo("Alabaster Host Sanctifier", 4, Rarity.COMMON, mage.cards.a.AlabasterHostSanctifier.class)); + cards.add(new SetCardInfo("Arachnoid Adaptation", 175, Rarity.COMMON, mage.cards.a.ArachnoidAdaptation.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)); cards.add(new SetCardInfo("Artistic Refusal", 46, Rarity.UNCOMMON, mage.cards.a.ArtisticRefusal.class));