From 45bbfa10b76612b35d66e1f2959956a9fc7362ca Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 2 Nov 2022 09:58:34 -0400 Subject: [PATCH] [BRO] Implement Gix's Caress --- Mage.Sets/src/mage/cards/g/GixsCaress.java | 41 +++++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + 2 files changed, 42 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/g/GixsCaress.java diff --git a/Mage.Sets/src/mage/cards/g/GixsCaress.java b/Mage.Sets/src/mage/cards/g/GixsCaress.java new file mode 100644 index 00000000000..eef742556e9 --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GixsCaress.java @@ -0,0 +1,41 @@ +package mage.cards.g; + +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.discard.DiscardCardYouChooseTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.TargetController; +import mage.filter.StaticFilters; +import mage.game.permanent.token.PowerstoneToken; +import mage.target.common.TargetOpponent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class GixsCaress extends CardImpl { + + public GixsCaress(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}"); + + // Target opponent reveals their hand. You choose a nonland card from it. That player discards that card. + this.getSpellAbility().addEffect(new DiscardCardYouChooseTargetEffect( + StaticFilters.FILTER_CARD_NON_LAND, TargetController.OPPONENT + )); + this.getSpellAbility().addTarget(new TargetOpponent()); + + // Create a tapped Powerstone token. + this.getSpellAbility().addEffect(new CreateTokenEffect(new PowerstoneToken(), 1, true)); + } + + private GixsCaress(final GixsCaress card) { + super(card); + } + + @Override + public GixsCaress copy() { + return new GixsCaress(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index 5b7a377aaf0..1cea51062b7 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -61,6 +61,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Forest", 286, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Gaea's Courser", 181, Rarity.UNCOMMON, mage.cards.g.GaeasCourser.class)); cards.add(new SetCardInfo("Giant Growth", 183, Rarity.COMMON, mage.cards.g.GiantGrowth.class)); + cards.add(new SetCardInfo("Gix's Caress", 96, Rarity.COMMON, mage.cards.g.GixsCaress.class)); cards.add(new SetCardInfo("Go for the Throat", 102, Rarity.UNCOMMON, mage.cards.g.GoForTheThroat.class)); cards.add(new SetCardInfo("Goblin Firebomb", 235, Rarity.COMMON, mage.cards.g.GoblinFirebomb.class)); cards.add(new SetCardInfo("Gruesome Realization", 103, Rarity.UNCOMMON, mage.cards.g.GruesomeRealization.class));