From b4b2836337f2c9f4108ee97055c698c5b5d0c5a2 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 12 Apr 2021 17:52:28 -0400 Subject: [PATCH] [C21] Implemented Blossoming Bogbeast --- .../src/mage/cards/b/BlossomingBogbeast.java | 53 +++++++++++++++++++ .../src/mage/sets/Commander2021Edition.java | 1 + 2 files changed, 54 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/b/BlossomingBogbeast.java diff --git a/Mage.Sets/src/mage/cards/b/BlossomingBogbeast.java b/Mage.Sets/src/mage/cards/b/BlossomingBogbeast.java new file mode 100644 index 0000000000..3c00ed0013 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BlossomingBogbeast.java @@ -0,0 +1,53 @@ +package mage.cards.b; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.AttacksTriggeredAbility; +import mage.abilities.dynamicvalue.common.ControllerGotLifeCount; +import mage.abilities.effects.common.GainLifeEffect; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.filter.StaticFilters; +import mage.watchers.common.PlayerGainedLifeWatcher; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class BlossomingBogbeast extends CardImpl { + + public BlossomingBogbeast(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{G}"); + + this.subtype.add(SubType.BEAST); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // Whenever Blossoming Bogbeast attacks, you gain 2 life. Then creatures you control gain trample and get +X/+X until end of turn, where X is the amount of life you gained this turn. + Ability ability = new AttacksTriggeredAbility(new GainLifeEffect(2), false); + ability.addEffect(new GainAbilityControlledEffect( + TrampleAbility.getInstance(), Duration.EndOfTurn, + StaticFilters.FILTER_CONTROLLED_CREATURE + ).setText("Then creatures you control gain trample")); + ability.addEffect(new BoostControlledEffect( + ControllerGotLifeCount.instance, ControllerGotLifeCount.instance, Duration.EndOfTurn + ).setText("and get +X/+X until end of turn, where X is the amount of life you gained this turn")); + this.addAbility(ability.addHint(ControllerGotLifeCount.getHint()), new PlayerGainedLifeWatcher()); + } + + private BlossomingBogbeast(final BlossomingBogbeast card) { + super(card); + } + + @Override + public BlossomingBogbeast copy() { + return new BlossomingBogbeast(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Commander2021Edition.java b/Mage.Sets/src/mage/sets/Commander2021Edition.java index 07f9a6a8f1..e1225bcf8c 100644 --- a/Mage.Sets/src/mage/sets/Commander2021Edition.java +++ b/Mage.Sets/src/mage/sets/Commander2021Edition.java @@ -40,6 +40,7 @@ public final class Commander2021Edition extends ExpansionSet { cards.add(new SetCardInfo("Blight Mound", 36, Rarity.RARE, mage.cards.b.BlightMound.class)); cards.add(new SetCardInfo("Blighted Cataract", 279, Rarity.UNCOMMON, mage.cards.b.BlightedCataract.class)); cards.add(new SetCardInfo("Bloodthirsty Blade", 235, Rarity.UNCOMMON, mage.cards.b.BloodthirstyBlade.class)); + cards.add(new SetCardInfo("Blossoming Bogbeast", 59, Rarity.RARE, mage.cards.b.BlossomingBogbeast.class)); cards.add(new SetCardInfo("Bojuka Bog", 281, Rarity.COMMON, mage.cards.b.BojukaBog.class)); cards.add(new SetCardInfo("Boreas Charger", 84, Rarity.RARE, mage.cards.b.BoreasCharger.class)); cards.add(new SetCardInfo("Boros Charm", 210, Rarity.UNCOMMON, mage.cards.b.BorosCharm.class));