[DSK] Implement Fear of Infinity

This commit is contained in:
theelk801 2024-09-05 10:35:31 -04:00
parent efe440618d
commit f56dbadf18
3 changed files with 56 additions and 1 deletions

View file

@ -0,0 +1,50 @@
package mage.cards.f;
import mage.MageInt;
import mage.abilities.abilityword.EerieAbility;
import mage.abilities.effects.common.ReturnSourceFromGraveyardToHandEffect;
import mage.abilities.keyword.FearAbility;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.LifelinkAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Zone;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class FearOfInfinity extends CardImpl {
public FearOfInfinity(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT, CardType.CREATURE}, "{1}{U}{B}");
this.subtype.add(SubType.NIGHTMARE);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// Flying
this.addAbility(FlyingAbility.getInstance());
// Lifelink
this.addAbility(LifelinkAbility.getInstance());
// Fear of Infinity can't block.
this.addAbility(FearAbility.getInstance());
// Eerie -- Whenever an enchantment you control enters and whenever you fully unlock a Room, you may return Fear of Infinity from your graveyard to your hand.
this.addAbility(new EerieAbility(Zone.GRAVEYARD, new ReturnSourceFromGraveyardToHandEffect(), true));
}
private FearOfInfinity(final FearOfInfinity card) {
super(card);
}
@Override
public FearOfInfinity copy() {
return new FearOfInfinity(this);
}
}

View file

@ -41,6 +41,7 @@ public final class DuskmournHouseOfHorror extends ExpansionSet {
cards.add(new SetCardInfo("Ethereal Armor", 7, Rarity.UNCOMMON, mage.cards.e.EtherealArmor.class));
cards.add(new SetCardInfo("Fear of Failed Tests", 55, Rarity.UNCOMMON, mage.cards.f.FearOfFailedTests.class));
cards.add(new SetCardInfo("Fear of Immobility", 10, Rarity.COMMON, mage.cards.f.FearOfImmobility.class));
cards.add(new SetCardInfo("Fear of Infinity", 214, Rarity.UNCOMMON, mage.cards.f.FearOfInfinity.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));

View file

@ -21,7 +21,11 @@ public class EerieAbility extends TriggeredAbilityImpl {
}
public EerieAbility(Effect effect, boolean optional) {
super(Zone.BATTLEFIELD, effect, optional);
this(Zone.BATTLEFIELD, effect, optional);
}
public EerieAbility(Zone zone, Effect effect, boolean optional) {
super(zone, effect, optional);
setAbilityWord(AbilityWord.EERIE);
setTriggerPhrase("Whenever an enchantment you control enters and whenever you fully unlock a Room, ");
}