From eba3f8dbc09f1b3e6981a8deae51d7c889989c41 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 3 Nov 2022 09:08:41 -0400 Subject: [PATCH] [BRO] Implement Awaken the Woods --- .../src/mage/cards/a/AwakenTheWoods.java | 32 ++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + .../permanent/token/ForestDryadToken.java | 33 +++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AwakenTheWoods.java create mode 100644 Mage/src/main/java/mage/game/permanent/token/ForestDryadToken.java diff --git a/Mage.Sets/src/mage/cards/a/AwakenTheWoods.java b/Mage.Sets/src/mage/cards/a/AwakenTheWoods.java new file mode 100644 index 00000000000..710b4147821 --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AwakenTheWoods.java @@ -0,0 +1,32 @@ +package mage.cards.a; + +import mage.abilities.dynamicvalue.common.ManacostVariableValue; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.ForestDryadToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class AwakenTheWoods extends CardImpl { + + public AwakenTheWoods(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{G}{G}"); + + // Create X 1/1 green Forest Dryad land creature tokens. + this.getSpellAbility().addEffect(new CreateTokenEffect(new ForestDryadToken(), ManacostVariableValue.REGULAR)); + } + + private AwakenTheWoods(final AwakenTheWoods card) { + super(card); + } + + @Override + public AwakenTheWoods copy() { + return new AwakenTheWoods(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index 8adcbcff977..aa9f0c7d3f0 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -35,6 +35,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Ashnod, Flesh Mechanist", 84, Rarity.RARE, mage.cards.a.AshnodFleshMechanist.class)); cards.add(new SetCardInfo("Audacity", 169, Rarity.UNCOMMON, mage.cards.a.Audacity.class)); cards.add(new SetCardInfo("Autonomous Assembler", 34, Rarity.RARE, mage.cards.a.AutonomousAssembler.class)); + cards.add(new SetCardInfo("Awaken the Woods", 170, Rarity.MYTHIC, mage.cards.a.AwakenTheWoods.class)); cards.add(new SetCardInfo("Battlefield Forge", 257, Rarity.RARE, mage.cards.b.BattlefieldForge.class)); cards.add(new SetCardInfo("Bitter Reunion", 127, Rarity.COMMON, mage.cards.b.BitterReunion.class)); cards.add(new SetCardInfo("Bladecoil Serpent", 229, Rarity.MYTHIC, mage.cards.b.BladecoilSerpent.class)); diff --git a/Mage/src/main/java/mage/game/permanent/token/ForestDryadToken.java b/Mage/src/main/java/mage/game/permanent/token/ForestDryadToken.java new file mode 100644 index 00000000000..8b1a929e387 --- /dev/null +++ b/Mage/src/main/java/mage/game/permanent/token/ForestDryadToken.java @@ -0,0 +1,33 @@ +package mage.game.permanent.token; + +import mage.MageInt; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.Arrays; + +/** + * @author TheElk801 + */ +public final class ForestDryadToken extends TokenImpl { + + public ForestDryadToken() { + super("Forest Dryad Token", "1/1 green Forest Dryad land creature token"); + cardType.add(CardType.LAND); + cardType.add(CardType.CREATURE); + color.setGreen(true); + subtype.add(SubType.FOREST, SubType.DRYAD); + power = new MageInt(1); + toughness = new MageInt(1); + + availableImageSetCodes = Arrays.asList("BRO"); + } + + public ForestDryadToken(final ForestDryadToken token) { + super(token); + } + + public ForestDryadToken copy() { + return new ForestDryadToken(this); + } +}