From 44e30deed78579226003f513abf5a1df73b9205d Mon Sep 17 00:00:00 2001 From: theelk801 Date: Mon, 22 Jan 2024 10:35:09 -0500 Subject: [PATCH] [MKM] Implement Hunted Bonebrute --- .../src/mage/cards/h/HuntedBonebrute.java | 57 +++++++++++++++++++ .../src/mage/sets/MurdersAtKarlovManor.java | 1 + 2 files changed, 58 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/h/HuntedBonebrute.java diff --git a/Mage.Sets/src/mage/cards/h/HuntedBonebrute.java b/Mage.Sets/src/mage/cards/h/HuntedBonebrute.java new file mode 100644 index 00000000000..be01ab03dd5 --- /dev/null +++ b/Mage.Sets/src/mage/cards/h/HuntedBonebrute.java @@ -0,0 +1,57 @@ +package mage.cards.h; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.DiesSourceTriggeredAbility; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.CreateTokenTargetEffect; +import mage.abilities.effects.common.LoseLifeOpponentsEffect; +import mage.abilities.keyword.DisguiseAbility; +import mage.abilities.keyword.MenaceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.game.permanent.token.WhiteDogToken; +import mage.target.common.TargetOpponent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class HuntedBonebrute extends CardImpl { + + public HuntedBonebrute(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}"); + + this.subtype.add(SubType.SKELETON); + this.subtype.add(SubType.BEAST); + this.power = new MageInt(6); + this.toughness = new MageInt(2); + + // Menace + this.addAbility(new MenaceAbility()); + + // When Hunted Bonebrute enters the battlefield, target opponent creates two 1/1 white Dog creature tokens. + Ability ability = new EntersBattlefieldTriggeredAbility(new CreateTokenTargetEffect(new WhiteDogToken(), 2)); + ability.addTarget(new TargetOpponent()); + this.addAbility(ability); + + // When Hunted Bonebrute dies, each opponent loses 3 life. + this.addAbility(new DiesSourceTriggeredAbility(new LoseLifeOpponentsEffect(3))); + + // Disguise {1}{B} + this.addAbility(new DisguiseAbility(this, new ManaCostsImpl<>("{1}{B}"))); + } + + private HuntedBonebrute(final HuntedBonebrute card) { + super(card); + } + + @Override + public HuntedBonebrute copy() { + return new HuntedBonebrute(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MurdersAtKarlovManor.java b/Mage.Sets/src/mage/sets/MurdersAtKarlovManor.java index 0eb6f14a288..286bf89dc5d 100644 --- a/Mage.Sets/src/mage/sets/MurdersAtKarlovManor.java +++ b/Mage.Sets/src/mage/sets/MurdersAtKarlovManor.java @@ -62,6 +62,7 @@ public final class MurdersAtKarlovManor extends ExpansionSet { cards.add(new SetCardInfo("Hedge Maze", 262, Rarity.RARE, mage.cards.h.HedgeMaze.class)); cards.add(new SetCardInfo("Homicide Investigator", 86, Rarity.RARE, mage.cards.h.HomicideInvestigator.class)); cards.add(new SetCardInfo("Hotshot Investigators", 60, Rarity.COMMON, mage.cards.h.HotshotInvestigators.class)); + cards.add(new SetCardInfo("Hunted Bonebrute", 87, Rarity.RARE, mage.cards.h.HuntedBonebrute.class)); cards.add(new SetCardInfo("Island", 273, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Jaded Analyst", 62, Rarity.COMMON, mage.cards.j.JadedAnalyst.class)); cards.add(new SetCardInfo("Knife", 134, Rarity.UNCOMMON, mage.cards.k.Knife.class));