[FIC] Implement Eye of Nidhogg

This commit is contained in:
theelk801 2025-05-13 19:40:39 -04:00
parent 8e2e80927f
commit 3a9720bd7c
2 changed files with 76 additions and 0 deletions

View file

@ -0,0 +1,74 @@
package mage.cards.e;
import mage.ObjectColor;
import mage.abilities.Ability;
import mage.abilities.common.PutIntoGraveFromBattlefieldSourceTriggeredAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.AttachEffect;
import mage.abilities.effects.common.ReturnToHandSourceEffect;
import mage.abilities.effects.common.combat.GoadAttachedEffect;
import mage.abilities.effects.common.continuous.AddCardSubtypeAttachedEffect;
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
import mage.abilities.effects.common.continuous.SetBasePowerToughnessEnchantedEffect;
import mage.abilities.effects.common.continuous.SetCardColorAttachedEffect;
import mage.abilities.keyword.DeathtouchAbility;
import mage.abilities.keyword.EnchantAbility;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.*;
import mage.target.TargetPermanent;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class EyeOfNidhogg extends CardImpl {
public EyeOfNidhogg(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{B}");
this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.AURA);
// Enchant creature
TargetPermanent auraTarget = new TargetCreaturePermanent();
this.getSpellAbility().addTarget(auraTarget);
this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
this.addAbility(new EnchantAbility(auraTarget));
// Enchanted creature is a black Dragon with base power and toughness 4/2, has flying and deathtouch, and is goaded.
Ability ability = new SimpleStaticAbility(new SetCardColorAttachedEffect(
ObjectColor.BLACK, Duration.WhileControlled, AttachmentType.AURA
).setText("enchanted creature is a black"));
ability.addEffect(new AddCardSubtypeAttachedEffect(
SubType.DRAGON, AttachmentType.AURA
).setText("Dragon with power"));
ability.addEffect(new SetBasePowerToughnessEnchantedEffect(
4, 2
).setText("and toughness 4/2"));
ability.addEffect(new GainAbilityAttachedEffect(
FlyingAbility.getInstance(), AttachmentType.AURA
).setText(", has flying"));
ability.addEffect(new GainAbilityAttachedEffect(
DeathtouchAbility.getInstance(), AttachmentType.AURA
).setText("and deathtouch"));
ability.addEffect(new GoadAttachedEffect().concatBy(","));
this.addAbility(ability);
// When Eye of Nidhogg is put into a graveyard from the battlefield, return it to its owner's hand.
this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new ReturnToHandSourceEffect()
.setText("return it to its owner's hand")));
}
private EyeOfNidhogg(final EyeOfNidhogg card) {
super(card);
}
@Override
public EyeOfNidhogg copy() {
return new EyeOfNidhogg(this);
}
}

View file

@ -131,6 +131,8 @@ public final class FinalFantasyCommander extends ExpansionSet {
cards.add(new SetCardInfo("Exotic Orchard", 390, Rarity.RARE, mage.cards.e.ExoticOrchard.class));
cards.add(new SetCardInfo("Explorer's Scope", 344, Rarity.COMMON, mage.cards.e.ExplorersScope.class));
cards.add(new SetCardInfo("Exsanguinate", 276, Rarity.UNCOMMON, mage.cards.e.Exsanguinate.class));
cards.add(new SetCardInfo("Eye of Nidhogg", 115, Rarity.RARE, mage.cards.e.EyeOfNidhogg.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Eye of Nidhogg", 44, Rarity.RARE, mage.cards.e.EyeOfNidhogg.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Farewell", 242, Rarity.RARE, mage.cards.f.Farewell.class));
cards.add(new SetCardInfo("Farseek", 302, Rarity.COMMON, mage.cards.f.Farseek.class));
cards.add(new SetCardInfo("Fathom Mage", 325, Rarity.RARE, mage.cards.f.FathomMage.class));