mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
[AFR] Implemented You Find a Cursed Idol
This commit is contained in:
parent
767a0b510f
commit
c43aa201f8
2 changed files with 50 additions and 0 deletions
49
Mage.Sets/src/mage/cards/y/YouFindACursedIdol.java
Normal file
49
Mage.Sets/src/mage/cards/y/YouFindACursedIdol.java
Normal file
|
@ -0,0 +1,49 @@
|
|||
package mage.cards.y;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.abilities.effects.keyword.VentureIntoTheDungeonEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.game.permanent.token.TreasureToken;
|
||||
import mage.target.common.TargetArtifactPermanent;
|
||||
import mage.target.common.TargetEnchantmentPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class YouFindACursedIdol extends CardImpl {
|
||||
|
||||
public YouFindACursedIdol(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{G}");
|
||||
|
||||
// Choose one —
|
||||
// • Smash it — Destroy target artifact.
|
||||
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetArtifactPermanent());
|
||||
this.getSpellAbility().withFirstModeFlavorWord("Smash It");
|
||||
|
||||
// • Life the Curse — Destroy target enchantment.
|
||||
Mode mode = new Mode(new DestroyTargetEffect());
|
||||
mode.addTarget(new TargetEnchantmentPermanent());
|
||||
this.getSpellAbility().addMode(mode.withFlavorWord("Lift the Curse"));
|
||||
|
||||
// • Steal Its Eyes — Create an Treasure token and venture into the dungeon.
|
||||
mode = new Mode(new CreateTokenEffect(new TreasureToken()));
|
||||
mode.addEffect(new VentureIntoTheDungeonEffect().concatBy("and"));
|
||||
this.getSpellAbility().addMode(mode.withFlavorWord("Steal Its Eyes"));
|
||||
}
|
||||
|
||||
private YouFindACursedIdol(final YouFindACursedIdol card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public YouFindACursedIdol copy() {
|
||||
return new YouFindACursedIdol(this);
|
||||
}
|
||||
}
|
|
@ -100,6 +100,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Vorpal Sword", 124, Rarity.RARE, mage.cards.v.VorpalSword.class));
|
||||
cards.add(new SetCardInfo("Werewolf Pack Leader", 211, Rarity.RARE, mage.cards.w.WerewolfPackLeader.class));
|
||||
cards.add(new SetCardInfo("You Come to a River", 83, Rarity.COMMON, mage.cards.y.YouComeToARiver.class));
|
||||
cards.add(new SetCardInfo("You Find a Cursed Idol", 213, Rarity.COMMON, mage.cards.y.YouFindACursedIdol.class));
|
||||
cards.add(new SetCardInfo("You Find the Villains' Lair", 84, Rarity.COMMON, mage.cards.y.YouFindTheVillainsLair.class));
|
||||
cards.add(new SetCardInfo("You Hear Something on Watch", 42, Rarity.COMMON, mage.cards.y.YouHearSomethingOnWatch.class));
|
||||
cards.add(new SetCardInfo("You See a Guard Approach", 85, Rarity.COMMON, mage.cards.y.YouSeeAGuardApproach.class));
|
||||
|
|
Loading…
Reference in a new issue