From 7b075372886f869a7fe953f95f0968cd970cf504 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 4 Nov 2022 09:40:23 -0400 Subject: [PATCH] [BRO] Implement Bushwhack --- Mage.Sets/src/mage/cards/b/Bushwhack.java | 44 +++++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + 2 files changed, 45 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/b/Bushwhack.java diff --git a/Mage.Sets/src/mage/cards/b/Bushwhack.java b/Mage.Sets/src/mage/cards/b/Bushwhack.java new file mode 100644 index 00000000000..b0bcd283b49 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/Bushwhack.java @@ -0,0 +1,44 @@ +package mage.cards.b; + +import mage.abilities.Mode; +import mage.abilities.effects.common.FightTargetsEffect; +import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; +import mage.target.TargetPermanent; +import mage.target.common.TargetCardInLibrary; +import mage.target.common.TargetControlledCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class Bushwhack extends CardImpl { + + public Bushwhack(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{G}"); + + // Choose one -- + // * Search your library for a basic land card, reveal it, put it into your hand, then shuffle. + this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect( + new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true + )); + + // * Target creature you control fights target creature you don't control. + this.getSpellAbility().addMode(new Mode(new FightTargetsEffect()) + .addTarget(new TargetControlledCreaturePermanent()) + .addTarget(new TargetPermanent(StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL))); + } + + private Bushwhack(final Bushwhack card) { + super(card); + } + + @Override + public Bushwhack copy() { + return new Bushwhack(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index 62f311e3184..78f12189242 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -48,6 +48,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Blast Zone", 258, Rarity.RARE, mage.cards.b.BlastZone.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("Bushwhack", 174, Rarity.UNCOMMON, mage.cards.b.Bushwhack.class)); cards.add(new SetCardInfo("Clay Champion", 230, Rarity.MYTHIC, mage.cards.c.ClayChampion.class)); cards.add(new SetCardInfo("Clay Revenant", 118, Rarity.COMMON, mage.cards.c.ClayRevenant.class)); cards.add(new SetCardInfo("Combat Courier", 77, Rarity.COMMON, mage.cards.c.CombatCourier.class));