From c0f9cb222ea9acf97b7f58bcd35ba12afd2f0933 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 22 Nov 2022 19:48:38 -0500 Subject: [PATCH] [J22] Implement Conductor of Cacophony --- .../mage/cards/c/ConductorOfCacophony.java | 64 +++++++++++++++++++ Mage.Sets/src/mage/sets/Jumpstart2022.java | 1 + 2 files changed, 65 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/c/ConductorOfCacophony.java diff --git a/Mage.Sets/src/mage/cards/c/ConductorOfCacophony.java b/Mage.Sets/src/mage/cards/c/ConductorOfCacophony.java new file mode 100644 index 0000000000..d174f8f15f --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/ConductorOfCacophony.java @@ -0,0 +1,64 @@ +package mage.cards.c; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.RemoveCountersSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.DamageAllEffect; +import mage.abilities.effects.common.DamagePlayersEffect; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.counters.CounterType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.mageobject.AnotherPredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ConductorOfCacophony extends CardImpl { + + private static final FilterPermanent filter = new FilterCreaturePermanent("each other creature"); + + static { + filter.add(AnotherPredicate.instance); + } + + public ConductorOfCacophony(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}"); + + this.subtype.add(SubType.DEMON); + this.power = new MageInt(2); + this.toughness = new MageInt(1); + + // Conductor of Cacophony enters the battlefield with two +1/+1 counters on it. + this.addAbility(new EntersBattlefieldAbility( + new AddCountersSourceEffect(CounterType.P1P1.createInstance(2)), + "with two +1/+1 counters on it" + )); + + // {B}, Remove a +1/+1 counter from Conductor of Cacophony: It deals 1 damage to each other creature and each player. + Ability ability = new SimpleActivatedAbility( + new DamageAllEffect(1, "it", filter), new ManaCostsImpl<>("{B}") + ); + ability.addCost(new RemoveCountersSourceCost(CounterType.P1P1.createInstance())); + ability.addEffect(new DamagePlayersEffect(1).setText("and each player")); + this.addAbility(ability); + } + + private ConductorOfCacophony(final ConductorOfCacophony card) { + super(card); + } + + @Override + public ConductorOfCacophony copy() { + return new ConductorOfCacophony(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Jumpstart2022.java b/Mage.Sets/src/mage/sets/Jumpstart2022.java index de14a5917b..04b9785493 100644 --- a/Mage.Sets/src/mage/sets/Jumpstart2022.java +++ b/Mage.Sets/src/mage/sets/Jumpstart2022.java @@ -30,6 +30,7 @@ public final class Jumpstart2022 extends ExpansionSet { cards.add(new SetCardInfo("Burglar Rat", 384, Rarity.COMMON, mage.cards.b.BurglarRat.class)); cards.add(new SetCardInfo("Chittering Rats", 387, Rarity.COMMON, mage.cards.c.ChitteringRats.class)); cards.add(new SetCardInfo("Coldsteel Heart", 94, Rarity.UNCOMMON, mage.cards.c.ColdsteelHeart.class)); + cards.add(new SetCardInfo("Conductor of Cacophony", 20, Rarity.UNCOMMON, mage.cards.c.ConductorOfCacophony.class)); cards.add(new SetCardInfo("Crypt Rats", 392, Rarity.UNCOMMON, mage.cards.c.CryptRats.class)); cards.add(new SetCardInfo("Demon of Catastrophes", 397, Rarity.RARE, mage.cards.d.DemonOfCatastrophes.class)); cards.add(new SetCardInfo("Diabolic Edict", 67, Rarity.COMMON, mage.cards.d.DiabolicEdict.class));