From 0ee5e755010b2883eb85aaec5c8e5894dfc34609 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 26 May 2022 20:53:18 -0400 Subject: [PATCH] [CLB] Implemented You're Confronted by Robbers --- .../cards/y/YoureConfrontedByRobbers.java | 42 +++++++++++++++++++ .../CommanderLegendsBattleForBaldursGate.java | 1 + 2 files changed, 43 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/y/YoureConfrontedByRobbers.java diff --git a/Mage.Sets/src/mage/cards/y/YoureConfrontedByRobbers.java b/Mage.Sets/src/mage/cards/y/YoureConfrontedByRobbers.java new file mode 100644 index 00000000000..2b9ff50905c --- /dev/null +++ b/Mage.Sets/src/mage/cards/y/YoureConfrontedByRobbers.java @@ -0,0 +1,42 @@ +package mage.cards.y; + +import mage.abilities.Mode; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.TapTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.SoldierToken; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class YoureConfrontedByRobbers extends CardImpl { + + public YoureConfrontedByRobbers(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{W}"); + + // Choose one — + // • Stall for Time — Tap up to three target creatures. + this.getSpellAbility().addEffect(new TapTargetEffect()); + this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, 3)); + this.getSpellAbility().withFirstModeFlavorWord("Stall for Time"); + + // • Call for Aid — Create three 1/1 white Soldier creature tokens. + this.getSpellAbility().addMode(new Mode( + new CreateTokenEffect(new SoldierToken(), 3) + ).withFlavorWord("Call for Aid")); + } + + private YoureConfrontedByRobbers(final YoureConfrontedByRobbers card) { + super(card); + } + + @Override + public YoureConfrontedByRobbers copy() { + return new YoureConfrontedByRobbers(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java b/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java index 076248ebc8f..f1e2475fe72 100644 --- a/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java +++ b/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java @@ -200,6 +200,7 @@ public final class CommanderLegendsBattleForBaldursGate extends ExpansionSet { cards.add(new SetCardInfo("White Plume Adventurer", 49, Rarity.RARE, mage.cards.w.WhitePlumeAdventurer.class)); cards.add(new SetCardInfo("Wilson, Refined Grizzly", 261, Rarity.UNCOMMON, mage.cards.w.WilsonRefinedGrizzly.class)); cards.add(new SetCardInfo("Wyll, Blade of Frontiers", 208, Rarity.RARE, mage.cards.w.WyllBladeOfFrontiers.class)); + cards.add(new SetCardInfo("You're Confronted by Robbers", 53, Rarity.COMMON, mage.cards.y.YoureConfrontedByRobbers.class)); cards.add(new SetCardInfo("Young Blue Dragon", 106, Rarity.COMMON, mage.cards.y.YoungBlueDragon.class)); cards.add(new SetCardInfo("Young Red Dragon", 210, Rarity.COMMON, mage.cards.y.YoungRedDragon.class)); cards.add(new SetCardInfo("Zevlor, Elturel Exile", 296, Rarity.RARE, mage.cards.z.ZevlorElturelExile.class));