From 40bdeb7c9ee98f003f3d7604ee620b006ec0fbf4 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Mon, 2 Sep 2024 11:19:54 -0400 Subject: [PATCH] [DSK] Implement Fear of Isolation --- .../src/mage/cards/f/FearOfIsolation.java | 41 +++++++++++++++++++ .../src/mage/sets/DuskmournHouseOfHorror.java | 1 + 2 files changed, 42 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/f/FearOfIsolation.java diff --git a/Mage.Sets/src/mage/cards/f/FearOfIsolation.java b/Mage.Sets/src/mage/cards/f/FearOfIsolation.java new file mode 100644 index 00000000000..8d3f52aa457 --- /dev/null +++ b/Mage.Sets/src/mage/cards/f/FearOfIsolation.java @@ -0,0 +1,41 @@ +package mage.cards.f; + +import mage.MageInt; +import mage.abilities.costs.common.ReturnToHandChosenControlledPermanentCost; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.target.common.TargetControlledPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class FearOfIsolation extends CardImpl { + + public FearOfIsolation(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT, CardType.CREATURE}, "{1}{U}"); + + this.subtype.add(SubType.NIGHTMARE); + this.power = new MageInt(2); + this.toughness = new MageInt(3); + + // As an additional cost to cast this spell, return a permanent you control to its owner's hand. + this.getSpellAbility().addCost(new ReturnToHandChosenControlledPermanentCost(new TargetControlledPermanent())); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + } + + private FearOfIsolation(final FearOfIsolation card) { + super(card); + } + + @Override + public FearOfIsolation copy() { + return new FearOfIsolation(this); + } +} diff --git a/Mage.Sets/src/mage/sets/DuskmournHouseOfHorror.java b/Mage.Sets/src/mage/sets/DuskmournHouseOfHorror.java index 7bc694bb669..63f466c9c2b 100644 --- a/Mage.Sets/src/mage/sets/DuskmournHouseOfHorror.java +++ b/Mage.Sets/src/mage/sets/DuskmournHouseOfHorror.java @@ -30,6 +30,7 @@ public final class DuskmournHouseOfHorror extends ExpansionSet { cards.add(new SetCardInfo("Enduring Innocence", 6, Rarity.RARE, mage.cards.e.EnduringInnocence.class)); cards.add(new SetCardInfo("Enduring Tenacity", 95, Rarity.RARE, mage.cards.e.EnduringTenacity.class)); cards.add(new SetCardInfo("Fear of Immobility", 10, Rarity.COMMON, mage.cards.f.FearOfImmobility.class)); + cards.add(new SetCardInfo("Fear of Isolation", 58, Rarity.UNCOMMON, mage.cards.f.FearOfIsolation.class)); cards.add(new SetCardInfo("Fear of Lost Teeth", 97, Rarity.COMMON, mage.cards.f.FearOfLostTeeth.class)); cards.add(new SetCardInfo("Fear of Missing Out", 136, Rarity.RARE, mage.cards.f.FearOfMissingOut.class)); cards.add(new SetCardInfo("Forest", 276, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS));