From 54e521422787d57037e83f52d866c32274a55fce Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 3 Jun 2021 08:54:12 -0400 Subject: [PATCH] [MH2] Implemented Loathsome Curator --- .../src/mage/cards/l/LoathsomeCurator.java | 63 +++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons2.java | 1 + 2 files changed, 64 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/l/LoathsomeCurator.java diff --git a/Mage.Sets/src/mage/cards/l/LoathsomeCurator.java b/Mage.Sets/src/mage/cards/l/LoathsomeCurator.java new file mode 100644 index 0000000000..a8c5485f96 --- /dev/null +++ b/Mage.Sets/src/mage/cards/l/LoathsomeCurator.java @@ -0,0 +1,63 @@ +package mage.cards.l; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.ExploitCreatureTriggeredAbility; +import mage.abilities.effects.common.DestroyTargetEffect; +import mage.abilities.keyword.ExploitAbility; +import mage.abilities.keyword.MenaceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.ComparisonType; +import mage.constants.SubType; +import mage.constants.TargetController; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.mageobject.ManaValuePredicate; +import mage.target.TargetPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class LoathsomeCurator extends CardImpl { + + private static final FilterPermanent filter + = new FilterCreaturePermanent("creature you don't control with mana value 3 or less"); + + static { + filter.add(TargetController.NOT_YOU.getControllerPredicate()); + filter.add(new ManaValuePredicate(ComparisonType.FEWER_THAN, 4)); + } + + public LoathsomeCurator(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}"); + + this.subtype.add(SubType.GORGON); + this.subtype.add(SubType.WIZARD); + this.power = new MageInt(5); + this.toughness = new MageInt(4); + + // Exploit + this.addAbility(new ExploitAbility()); + + // Menace + this.addAbility(new MenaceAbility()); + + // When Loathsome Curator exploits a creature, destroy target creature you don't control with mana value 3 or less. + Ability ability = new ExploitCreatureTriggeredAbility(new DestroyTargetEffect(), false); + ability.addTarget(new TargetPermanent(filter)); + this.addAbility(ability); + } + + private LoathsomeCurator(final LoathsomeCurator card) { + super(card); + } + + @Override + public LoathsomeCurator copy() { + return new LoathsomeCurator(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons2.java b/Mage.Sets/src/mage/sets/ModernHorizons2.java index 81eee3a2fe..e06705b990 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons2.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons2.java @@ -158,6 +158,7 @@ public final class ModernHorizons2 extends ExpansionSet { cards.add(new SetCardInfo("Lens Flare", 20, Rarity.COMMON, mage.cards.l.LensFlare.class)); cards.add(new SetCardInfo("Lightning Spear", 134, Rarity.COMMON, mage.cards.l.LightningSpear.class)); cards.add(new SetCardInfo("Liquimetal Torque", 228, Rarity.UNCOMMON, mage.cards.l.LiquimetalTorque.class)); + cards.add(new SetCardInfo("Loathsome Curator", 91, Rarity.COMMON, mage.cards.l.LoathsomeCurator.class)); cards.add(new SetCardInfo("Lose Focus", 49, Rarity.COMMON, mage.cards.l.LoseFocus.class)); cards.add(new SetCardInfo("Lucid Dreams", 50, Rarity.UNCOMMON, mage.cards.l.LucidDreams.class)); cards.add(new SetCardInfo("Marble Gargoyle", 21, Rarity.COMMON, mage.cards.m.MarbleGargoyle.class));