From fb580094492f47ff45c57d6b96229711cfaf6f17 Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Thu, 25 Aug 2022 10:48:42 -0500 Subject: [PATCH] [DMU] Implemented Joint Exploration --- .../src/mage/cards/j/JointExploration.java | 46 +++++++++++++++++++ Mage.Sets/src/mage/sets/DominariaUnited.java | 1 + 2 files changed, 47 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/j/JointExploration.java diff --git a/Mage.Sets/src/mage/cards/j/JointExploration.java b/Mage.Sets/src/mage/cards/j/JointExploration.java new file mode 100644 index 0000000000..16fdb08367 --- /dev/null +++ b/Mage.Sets/src/mage/cards/j/JointExploration.java @@ -0,0 +1,46 @@ +package mage.cards.j; + +import java.util.UUID; + +import mage.abilities.condition.common.KickedCondition; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.PutCardFromHandOntoBattlefieldEffect; +import mage.abilities.effects.keyword.ScryEffect; +import mage.abilities.keyword.KickerAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; + +/** + * + * @author weirddan455 + */ +public final class JointExploration extends CardImpl { + + public JointExploration(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}"); + + // Kicker {G} + this.addAbility(new KickerAbility("{G}")); + + // Scry 2, then draw a card. If this spell was kicked, you may put a land card from your hand onto the battlefield. + this.getSpellAbility().addEffect(new ScryEffect(2, false)); + this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1).concatBy(", then")); + this.getSpellAbility().addEffect(new ConditionalOneShotEffect( + new PutCardFromHandOntoBattlefieldEffect(StaticFilters.FILTER_CARD_LAND_A), + KickedCondition.ONCE, + "If this spell was kicked, you may put a land card from your hand onto the battlefield." + )); + } + + private JointExploration(final JointExploration card) { + super(card); + } + + @Override + public JointExploration copy() { + return new JointExploration(this); + } +} diff --git a/Mage.Sets/src/mage/sets/DominariaUnited.java b/Mage.Sets/src/mage/sets/DominariaUnited.java index 04b6c6344b..8721713e2e 100644 --- a/Mage.Sets/src/mage/sets/DominariaUnited.java +++ b/Mage.Sets/src/mage/sets/DominariaUnited.java @@ -79,6 +79,7 @@ public final class DominariaUnited extends ExpansionSet { cards.add(new SetCardInfo("Jaya, Fiery Negotiator", 133, Rarity.MYTHIC, mage.cards.j.JayaFieryNegotiator.class)); cards.add(new SetCardInfo("Jhoira, Ageless Innovator", 202, Rarity.RARE, mage.cards.j.JhoiraAgelessInnovator.class)); cards.add(new SetCardInfo("Join Forces", 21, Rarity.UNCOMMON, mage.cards.j.JoinForces.class)); + cards.add(new SetCardInfo("Joint Exploration", 56, Rarity.UNCOMMON, mage.cards.j.JointExploration.class)); cards.add(new SetCardInfo("Juniper Order Rootweaver", 22, Rarity.COMMON, mage.cards.j.JuniperOrderRootweaver.class)); cards.add(new SetCardInfo("Karplusan Forest", 250, Rarity.RARE, mage.cards.k.KarplusanForest.class)); cards.add(new SetCardInfo("King Darien XLVIII", 204, Rarity.RARE, mage.cards.k.KingDarienXLVIII.class));