From cec21a24c82889e09167a4e94aba3b0c8fcc3d54 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Thu, 11 Jul 2024 10:31:36 -0400 Subject: [PATCH] [BLB] Implement Tidecaller Mentor --- .../src/mage/cards/t/TidecallerMentor.java | 53 +++++++++++++++++++ Mage.Sets/src/mage/sets/Bloomburrow.java | 1 + 2 files changed, 54 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/TidecallerMentor.java diff --git a/Mage.Sets/src/mage/cards/t/TidecallerMentor.java b/Mage.Sets/src/mage/cards/t/TidecallerMentor.java new file mode 100644 index 00000000000..dfe49464a60 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TidecallerMentor.java @@ -0,0 +1,53 @@ +package mage.cards.t; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.condition.common.ThresholdCondition; +import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility; +import mage.abilities.effects.common.ReturnToHandTargetEffect; +import mage.abilities.keyword.MenaceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.AbilityWord; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.target.common.TargetNonlandPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TidecallerMentor extends CardImpl { + + public TidecallerMentor(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}{B}"); + + this.subtype.add(SubType.RAT); + this.subtype.add(SubType.WIZARD); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // Menace + this.addAbility(new MenaceAbility()); + + // Threshold -- When Tidecaller Mentor enters, if seven or more cards are in your graveyard, return up to one target nonland permanent to its owner's hand. + Ability ability = new ConditionalInterveningIfTriggeredAbility( + new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect()), + ThresholdCondition.instance, "When {this} enters, if seven or more cards " + + "are in your graveyard, return up to one target nonland permanent to its owner's hand." + ); + ability.addTarget(new TargetNonlandPermanent(0, 1)); + this.addAbility(ability.setAbilityWord(AbilityWord.THRESHOLD)); + } + + private TidecallerMentor(final TidecallerMentor card) { + super(card); + } + + @Override + public TidecallerMentor copy() { + return new TidecallerMentor(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Bloomburrow.java b/Mage.Sets/src/mage/sets/Bloomburrow.java index 8cd9e8408b2..57c6cf23f75 100644 --- a/Mage.Sets/src/mage/sets/Bloomburrow.java +++ b/Mage.Sets/src/mage/sets/Bloomburrow.java @@ -79,6 +79,7 @@ public final class Bloomburrow extends ExpansionSet { cards.add(new SetCardInfo("Tender Wildguide", 196, Rarity.RARE, mage.cards.t.TenderWildguide.class)); cards.add(new SetCardInfo("Thornvault Forager", 197, Rarity.RARE, mage.cards.t.ThornvaultForager.class)); cards.add(new SetCardInfo("Thundertrap Trainer", 78, Rarity.RARE, mage.cards.t.ThundertrapTrainer.class)); + cards.add(new SetCardInfo("Tidecaller Mentor", 236, Rarity.UNCOMMON, mage.cards.t.TidecallerMentor.class)); cards.add(new SetCardInfo("Valley Rotcaller", 119, Rarity.RARE, mage.cards.v.ValleyRotcaller.class)); cards.add(new SetCardInfo("Veteran Guardmouse", 237, Rarity.COMMON, mage.cards.v.VeteranGuardmouse.class)); cards.add(new SetCardInfo("Wandertale Mentor", 240, Rarity.UNCOMMON, mage.cards.w.WandertaleMentor.class));