From 56ede8063f61c9f52fb998855c39636cabc26706 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 18 May 2022 19:33:06 -0400 Subject: [PATCH] [CLB] Implemented Imoen, Mystic Trickster --- .../mage/cards/i/ImoenMysticTrickster.java | 61 +++++++++++++++++++ .../CommanderLegendsBattleForBaldursGate.java | 1 + 2 files changed, 62 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/i/ImoenMysticTrickster.java diff --git a/Mage.Sets/src/mage/cards/i/ImoenMysticTrickster.java b/Mage.Sets/src/mage/cards/i/ImoenMysticTrickster.java new file mode 100644 index 00000000000..dfcafe523eb --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/ImoenMysticTrickster.java @@ -0,0 +1,61 @@ +package mage.cards.i; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.BeginningOfEndStepTriggeredAbility; +import mage.abilities.common.ChooseABackgroundAbility; +import mage.abilities.condition.common.CompletedDungeonCondition; +import mage.abilities.condition.common.HaveInitiativeCondition; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.keyword.WardAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.*; +import mage.watchers.common.CompletedDungeonWatcher; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ImoenMysticTrickster extends CardImpl { + + public ImoenMysticTrickster(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.ROGUE); + this.subtype.add(SubType.WIZARD); + this.power = new MageInt(2); + this.toughness = new MageInt(3); + + // Ward {2} + this.addAbility(new WardAbility(new ManaCostsImpl<>("{2}"))); + + // At the beginning of your end step, if you have the initiative, draw a card. Draw another card if you've completed a dungeon. + Ability ability = new BeginningOfEndStepTriggeredAbility( + Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1), + TargetController.YOU, HaveInitiativeCondition.instance, false + ); + ability.addEffect(new ConditionalOneShotEffect( + new DrawCardSourceControllerEffect(1), CompletedDungeonCondition.instance, + "Draw another card if you've completed a dungeon" + )); + this.addAbility(ability.addHint(CompletedDungeonCondition.getHint()), new CompletedDungeonWatcher()); + + // Choose a Background + this.addAbility(ChooseABackgroundAbility.getInstance()); + } + + private ImoenMysticTrickster(final ImoenMysticTrickster card) { + super(card); + } + + @Override + public ImoenMysticTrickster copy() { + return new ImoenMysticTrickster(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java b/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java index 5b7c458725f..b6e71359bb8 100644 --- a/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java +++ b/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java @@ -46,6 +46,7 @@ public final class CommanderLegendsBattleForBaldursGate extends ExpansionSet { cards.add(new SetCardInfo("Forest", 467, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Goggles of Night", 74, Rarity.COMMON, mage.cards.g.GogglesOfNight.class)); cards.add(new SetCardInfo("Gorion, Wise Mentor", 276, Rarity.RARE, mage.cards.g.GorionWiseMentor.class)); + cards.add(new SetCardInfo("Imoen, Mystic Trickster", 77, Rarity.UNCOMMON, mage.cards.i.ImoenMysticTrickster.class)); cards.add(new SetCardInfo("Island", 455, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Korlessa, Scale Singer", 280, Rarity.UNCOMMON, mage.cards.k.KorlessaScaleSinger.class)); cards.add(new SetCardInfo("Lightning Bolt", 187, Rarity.COMMON, mage.cards.l.LightningBolt.class));