From 724daef1251aef387c5a04e14899611deece613a Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Mon, 5 Jul 2021 11:57:14 -0500 Subject: [PATCH] [AFR] Implemented Wandering Troubadour --- .../src/mage/cards/w/WanderingTroubadour.java | 45 +++++++++++++++++++ .../sets/AdventuresInTheForgottenRealms.java | 1 + 2 files changed, 46 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/w/WanderingTroubadour.java diff --git a/Mage.Sets/src/mage/cards/w/WanderingTroubadour.java b/Mage.Sets/src/mage/cards/w/WanderingTroubadour.java new file mode 100644 index 00000000000..c7de5e80060 --- /dev/null +++ b/Mage.Sets/src/mage/cards/w/WanderingTroubadour.java @@ -0,0 +1,45 @@ +package mage.cards.w; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.common.BeginningOfYourEndStepTriggeredAbility; +import mage.abilities.condition.common.LandfallCondition; +import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility; +import mage.abilities.effects.keyword.VentureIntoTheDungeonEffect; +import mage.constants.SubType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.watchers.common.LandfallWatcher; + +/** + * + * @author weirddan455 + */ +public final class WanderingTroubadour extends CardImpl { + + public WanderingTroubadour(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}"); + + this.subtype.add(SubType.DRAGON); + this.subtype.add(SubType.BARD); + this.power = new MageInt(4); + this.toughness = new MageInt(2); + + // At the beginning of your end step, if you had a land enter the battlefield under your control this turn, venture into the dungeon. + this.addAbility(new ConditionalInterveningIfTriggeredAbility( + new BeginningOfYourEndStepTriggeredAbility(new VentureIntoTheDungeonEffect(), false), + LandfallCondition.instance, + "At the beginning of your end step, if you had a land enter the battlefield under your control this turn, venture into the dungeon." + ), new LandfallWatcher()); + } + + private WanderingTroubadour(final WanderingTroubadour card) { + super(card); + } + + @Override + public WanderingTroubadour copy() { + return new WanderingTroubadour(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java index f33d08dfc7f..1bfa088637a 100644 --- a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java +++ b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java @@ -146,6 +146,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet { cards.add(new SetCardInfo("Varis, Silverymoon Ranger", 209, Rarity.RARE, mage.cards.v.VarisSilverymoonRanger.class)); cards.add(new SetCardInfo("Veteran Dungeoneer", 40, Rarity.COMMON, mage.cards.v.VeteranDungeoneer.class)); cards.add(new SetCardInfo("Vorpal Sword", 124, Rarity.RARE, mage.cards.v.VorpalSword.class)); + cards.add(new SetCardInfo("Wandering Troubadour", 210, Rarity.UNCOMMON, mage.cards.w.WanderingTroubadour.class)); cards.add(new SetCardInfo("Werewolf Pack Leader", 211, Rarity.RARE, mage.cards.w.WerewolfPackLeader.class)); cards.add(new SetCardInfo("Xorn", 167, Rarity.RARE, mage.cards.x.Xorn.class)); cards.add(new SetCardInfo("You Come to a River", 83, Rarity.COMMON, mage.cards.y.YouComeToARiver.class));