From 69b288f7fce3b74473af2f90575f53711496c713 Mon Sep 17 00:00:00 2001 From: theelk801 <theelk801@gmail.com> Date: Thu, 26 Jan 2023 22:12:29 -0500 Subject: [PATCH] [ONE] Implement Molten Rebuke --- Mage.Sets/src/mage/cards/m/MoltenRebuke.java | 42 +++++++++++++++++++ .../src/mage/sets/PhyrexiaAllWillBeOne.java | 1 + 2 files changed, 43 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/m/MoltenRebuke.java diff --git a/Mage.Sets/src/mage/cards/m/MoltenRebuke.java b/Mage.Sets/src/mage/cards/m/MoltenRebuke.java new file mode 100644 index 0000000000..b5becec899 --- /dev/null +++ b/Mage.Sets/src/mage/cards/m/MoltenRebuke.java @@ -0,0 +1,42 @@ +package mage.cards.m; + +import mage.abilities.Mode; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.common.DestroyTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetCreatureOrPlaneswalker; +import mage.target.common.TargetEquipmentPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class MoltenRebuke extends CardImpl { + + public MoltenRebuke(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{R}"); + + // Choose one or both-- + this.getSpellAbility().getModes().setMinModes(1); + this.getSpellAbility().getModes().setMaxModes(2); + + // * Molten Rebuke deals 5 damage to target creature or planeswalker. + this.getSpellAbility().addEffect(new DamageTargetEffect(5)); + this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker()); + + // * Destroy target Equipment. + this.getSpellAbility().addMode(new Mode(new DestroyTargetEffect()).addTarget(new TargetEquipmentPermanent())); + } + + private MoltenRebuke(final MoltenRebuke card) { + super(card); + } + + @Override + public MoltenRebuke copy() { + return new MoltenRebuke(this); + } +} diff --git a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java index 618bf4bc0a..43d51d9095 100644 --- a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java +++ b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java @@ -83,6 +83,7 @@ public final class PhyrexiaAllWillBeOne extends ExpansionSet { cards.add(new SetCardInfo("Mirran Safehouse", 232, Rarity.RARE, mage.cards.m.MirranSafehouse.class)); cards.add(new SetCardInfo("Mirrex", 254, Rarity.RARE, mage.cards.m.Mirrex.class)); cards.add(new SetCardInfo("Mite Overseer", 404, Rarity.RARE, mage.cards.m.MiteOverseer.class)); + cards.add(new SetCardInfo("Molten Rebuke", 141, Rarity.COMMON, mage.cards.m.MoltenRebuke.class)); cards.add(new SetCardInfo("Mondrak, Glory Dominus", 23, Rarity.MYTHIC, mage.cards.m.MondrakGloryDominus.class)); cards.add(new SetCardInfo("Monument to Perfection", 233, Rarity.RARE, mage.cards.m.MonumentToPerfection.class)); cards.add(new SetCardInfo("Mountain", 275, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS));