[MH2] Implemented Loathsome Curator

This commit is contained in:
Evan Kranzler 2021-06-03 08:54:12 -04:00
parent 5ac0008369
commit 54e5214227
2 changed files with 64 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));