From 19ebcf62b9dc974f1c0c9e7d890a33ed2ad8daa2 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 19 Apr 2022 20:02:09 -0400 Subject: [PATCH] [NCC] Implemented Brokers Confluence --- .../src/mage/cards/b/BrokersConfluence.java | 46 +++++++++++++++++++ .../src/mage/sets/NewCapennaCommander.java | 1 + 2 files changed, 47 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/b/BrokersConfluence.java diff --git a/Mage.Sets/src/mage/cards/b/BrokersConfluence.java b/Mage.Sets/src/mage/cards/b/BrokersConfluence.java new file mode 100644 index 0000000000..7b8a5d603a --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BrokersConfluence.java @@ -0,0 +1,46 @@ +package mage.cards.b; + +import mage.abilities.Mode; +import mage.abilities.effects.common.CounterTargetEffect; +import mage.abilities.effects.common.PhaseOutTargetEffect; +import mage.abilities.effects.common.counter.ProliferateEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetActivatedOrTriggeredAbility; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class BrokersConfluence extends CardImpl { + + public BrokersConfluence(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{G}{W}{U}"); + + // Choose three. You may choose the same mode more than once. + this.getSpellAbility().getModes().setMinModes(3); + this.getSpellAbility().getModes().setMaxModes(3); + this.getSpellAbility().getModes().setEachModeMoreThanOnce(true); + + // • Proliferate. + this.getSpellAbility().addEffect(new ProliferateEffect()); + + // • Target creature phases out. + this.getSpellAbility().addMode(new Mode(new PhaseOutTargetEffect()).addTarget(new TargetCreaturePermanent())); + + // • Counter target activated or triggered ability. + this.getSpellAbility().addMode(new Mode(new CounterTargetEffect()).addTarget(new TargetActivatedOrTriggeredAbility())); + } + + private BrokersConfluence(final BrokersConfluence card) { + super(card); + } + + @Override + public BrokersConfluence copy() { + return new BrokersConfluence(this); + } +} diff --git a/Mage.Sets/src/mage/sets/NewCapennaCommander.java b/Mage.Sets/src/mage/sets/NewCapennaCommander.java index 93a074cfc1..8d832273e0 100644 --- a/Mage.Sets/src/mage/sets/NewCapennaCommander.java +++ b/Mage.Sets/src/mage/sets/NewCapennaCommander.java @@ -27,6 +27,7 @@ public final class NewCapennaCommander extends ExpansionSet { cards.add(new SetCardInfo("Angelic Sleuth", 113, Rarity.RARE, mage.cards.a.AngelicSleuth.class)); cards.add(new SetCardInfo("Bennie Bracks, Zoologist", 86, Rarity.MYTHIC, mage.cards.b.BennieBracksZoologist.class)); cards.add(new SetCardInfo("Body Count", 34, Rarity.RARE, mage.cards.b.BodyCount.class)); + cards.add(new SetCardInfo("Brokers Confluence", 168, Rarity.RARE, mage.cards.b.BrokersConfluence.class)); cards.add(new SetCardInfo("Damning Verdict", 15, Rarity.RARE, mage.cards.d.DamningVerdict.class)); cards.add(new SetCardInfo("Extravagant Replication", 25, Rarity.RARE, mage.cards.e.ExtravagantReplication.class)); cards.add(new SetCardInfo("Kitt Kanto, Mayhem Diva", 4, Rarity.MYTHIC, mage.cards.k.KittKantoMayhemDiva.class));