From fdad56f1c55448ef5233e312c13ad3cc364fdd7b Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 15 Jan 2021 18:57:06 -0500 Subject: [PATCH] [KHM] Implemented Arachnoform --- Mage.Sets/src/mage/cards/a/Arachnoform.java | 56 +++++++++++++++++++++ Mage.Sets/src/mage/sets/Kaldheim.java | 1 + 2 files changed, 57 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/Arachnoform.java diff --git a/Mage.Sets/src/mage/cards/a/Arachnoform.java b/Mage.Sets/src/mage/cards/a/Arachnoform.java new file mode 100644 index 0000000000..15f706fba4 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/Arachnoform.java @@ -0,0 +1,56 @@ +package mage.cards.a; + +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.AttachEffect; +import mage.abilities.effects.common.continuous.BoostEnchantedEffect; +import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect; +import mage.abilities.effects.common.continuous.GainAllCreatureTypesAttachedEffect; +import mage.abilities.keyword.EnchantAbility; +import mage.abilities.keyword.ReachAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.AttachmentType; +import mage.constants.CardType; +import mage.constants.Outcome; +import mage.constants.SubType; +import mage.target.TargetPermanent; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class Arachnoform extends CardImpl { + + public Arachnoform(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{G}"); + + this.subtype.add(SubType.AURA); + + // Enchant creature + TargetPermanent auraTarget = new TargetCreaturePermanent(); + this.getSpellAbility().addTarget(auraTarget); + this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature)); + Ability ability = new EnchantAbility(auraTarget.getTargetName()); + this.addAbility(ability); + + // Enchanted creature gets +2/+2, has reach, and is every creature type. + ability = new SimpleStaticAbility(new BoostEnchantedEffect(2, 2)); + ability.addEffect(new GainAbilityAttachedEffect( + ReachAbility.getInstance(), AttachmentType.AURA + ).setText(", has reach")); + ability.addEffect(new GainAllCreatureTypesAttachedEffect().concatBy(",")); + this.addAbility(ability); + } + + private Arachnoform(final Arachnoform card) { + super(card); + } + + @Override + public Arachnoform copy() { + return new Arachnoform(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Kaldheim.java b/Mage.Sets/src/mage/sets/Kaldheim.java index 92478002a7..8d2f622a53 100644 --- a/Mage.Sets/src/mage/sets/Kaldheim.java +++ b/Mage.Sets/src/mage/sets/Kaldheim.java @@ -67,6 +67,7 @@ public final class Kaldheim extends ExpansionSet { cards.add(new SetCardInfo("Alpine Meadow", 248, Rarity.COMMON, mage.cards.a.AlpineMeadow.class)); cards.add(new SetCardInfo("Alrund's Epiphany", 41, Rarity.MYTHIC, mage.cards.a.AlrundsEpiphany.class)); cards.add(new SetCardInfo("Annul", 42, Rarity.COMMON, mage.cards.a.Annul.class)); + cards.add(new SetCardInfo("Arachnoform", 159, Rarity.COMMON, mage.cards.a.Arachnoform.class)); cards.add(new SetCardInfo("Arctic Treeline", 249, Rarity.COMMON, mage.cards.a.ArcticTreeline.class)); cards.add(new SetCardInfo("Armed and Armored", 379, Rarity.UNCOMMON, mage.cards.a.ArmedAndArmored.class)); cards.add(new SetCardInfo("Augury Raven", 44, Rarity.COMMON, mage.cards.a.AuguryRaven.class));