From d8703ece1dcde5216a87ea78cfcd32a23cb5286c Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 5 Nov 2022 09:40:23 -0400 Subject: [PATCH] [BRO] Implement Boulderbranch Golem --- .../src/mage/cards/b/BoulderbranchGolem.java | 47 +++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + 2 files changed, 48 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/b/BoulderbranchGolem.java diff --git a/Mage.Sets/src/mage/cards/b/BoulderbranchGolem.java b/Mage.Sets/src/mage/cards/b/BoulderbranchGolem.java new file mode 100644 index 0000000000..342f18ba25 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BoulderbranchGolem.java @@ -0,0 +1,47 @@ +package mage.cards.b; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.dynamicvalue.DynamicValue; +import mage.abilities.dynamicvalue.common.SourcePermanentPowerCount; +import mage.abilities.effects.common.GainLifeEffect; +import mage.abilities.keyword.PrototypeAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class BoulderbranchGolem extends CardImpl { + + private static final DynamicValue xValue = new SourcePermanentPowerCount(); + + public BoulderbranchGolem(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{7}"); + + this.subtype.add(SubType.GOLEM); + this.power = new MageInt(6); + this.toughness = new MageInt(5); + + // Prototype {3}{G} -- 3/3 + this.addAbility(new PrototypeAbility(this, "{3}{G}", 3, 3)); + + // When Boulderbranch Golem enters the battlefield, you gain life equal to its power. + this.addAbility(new EntersBattlefieldTriggeredAbility( + new GainLifeEffect(xValue).setText("you gain life equal to its power") + )); + } + + private BoulderbranchGolem(final BoulderbranchGolem card) { + super(card); + } + + @Override + public BoulderbranchGolem copy() { + return new BoulderbranchGolem(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index f3748be6db..7ce57f9c3e 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -59,6 +59,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Blanchwood Armor", 171, Rarity.UNCOMMON, mage.cards.b.BlanchwoodArmor.class)); cards.add(new SetCardInfo("Blast Zone", 258, Rarity.RARE, mage.cards.b.BlastZone.class)); cards.add(new SetCardInfo("Blitz Automaton", 158, Rarity.COMMON, mage.cards.b.BlitzAutomaton.class)); + cards.add(new SetCardInfo("Boulderbranch Golem", 197, Rarity.COMMON, mage.cards.b.BoulderbranchGolem.class)); cards.add(new SetCardInfo("Brotherhood's End", 128, Rarity.RARE, mage.cards.b.BrotherhoodsEnd.class)); cards.add(new SetCardInfo("Brushland", 259, Rarity.RARE, mage.cards.b.Brushland.class)); cards.add(new SetCardInfo("Burrowing Razormaw", 173, Rarity.COMMON, mage.cards.b.BurrowingRazormaw.class));