[BRO] Implement Boulderbranch Golem

This commit is contained in:
Evan Kranzler 2022-11-05 09:40:23 -04:00
parent 6fb943c8b3
commit d8703ece1d
2 changed files with 48 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));