From a262ad6c47a16a36de9a573a2e66bbd79e2eb627 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sun, 29 May 2022 19:38:51 -0400 Subject: [PATCH] [CLB] Implemented Recruitment Drive --- .../src/mage/cards/r/RecruitmentDrive.java | 44 +++++++++++++++++++ .../CommanderLegendsBattleForBaldursGate.java | 1 + 2 files changed, 45 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/r/RecruitmentDrive.java diff --git a/Mage.Sets/src/mage/cards/r/RecruitmentDrive.java b/Mage.Sets/src/mage/cards/r/RecruitmentDrive.java new file mode 100644 index 00000000000..49c8bc5b1dc --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/RecruitmentDrive.java @@ -0,0 +1,44 @@ +package mage.cards.r; + +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.RollDieWithResultTableEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.KnightToken; +import mage.game.permanent.token.SoldierToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class RecruitmentDrive extends CardImpl { + + public RecruitmentDrive(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{W}"); + + // Roll a d20. + RollDieWithResultTableEffect effect = new RollDieWithResultTableEffect(20); + + // 1-9 | Create two 1/1 white Soldier creature tokens. + effect.addTableEntry(1, 9, new CreateTokenEffect(new SoldierToken(), 2)); + + // 10-19 | Create two 2/2 white Knight creature tokens. + effect.addTableEntry(10, 19, new CreateTokenEffect(new KnightToken(), 2)); + + // 20 | Create three 2/2 white Knight creature tokens. + effect.addTableEntry(20, 20, new CreateTokenEffect(new KnightToken(), 3)); + + this.getSpellAbility().addEffect(effect); + } + + private RecruitmentDrive(final RecruitmentDrive card) { + super(card); + } + + @Override + public RecruitmentDrive copy() { + return new RecruitmentDrive(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java b/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java index 8d273432c88..6d6af8ebb89 100644 --- a/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java +++ b/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java @@ -191,6 +191,7 @@ public final class CommanderLegendsBattleForBaldursGate extends ExpansionSet { cards.add(new SetCardInfo("Raphael, Fiendish Savior", 292, Rarity.RARE, mage.cards.r.RaphaelFiendishSavior.class)); cards.add(new SetCardInfo("Rasaad yn Bashir", 37, Rarity.UNCOMMON, mage.cards.r.RasaadYnBashir.class)); cards.add(new SetCardInfo("Reckless Barbarian", 193, Rarity.COMMON, mage.cards.r.RecklessBarbarian.class)); + cards.add(new SetCardInfo("Recruitment Drive", 38, Rarity.COMMON, mage.cards.r.RecruitmentDrive.class)); cards.add(new SetCardInfo("Reflecting Pool", 358, Rarity.RARE, mage.cards.r.ReflectingPool.class)); cards.add(new SetCardInfo("Renari, Merchant of Marvels", 90, Rarity.UNCOMMON, mage.cards.r.RenariMerchantOfMarvels.class)); cards.add(new SetCardInfo("Rilsa Rael, Kingpin", 293, Rarity.UNCOMMON, mage.cards.r.RilsaRaelKingpin.class));