[DSK] Implement Fear of Isolation

This commit is contained in:
theelk801 2024-09-02 11:19:54 -04:00
parent c127981c7a
commit 40bdeb7c9e
2 changed files with 42 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));