From aac0fcaf5d4d2a8294a0eb3c88b16ae3271994f7 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Tue, 11 Apr 2023 09:47:49 -0400 Subject: [PATCH] [MOC] Implement Locthwain Lancer --- .../src/mage/cards/l/LocthwainLancer.java | 57 +++++++++++++++++++ .../mage/sets/MarchOfTheMachineCommander.java | 1 + 2 files changed, 58 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/l/LocthwainLancer.java diff --git a/Mage.Sets/src/mage/cards/l/LocthwainLancer.java b/Mage.Sets/src/mage/cards/l/LocthwainLancer.java new file mode 100644 index 0000000000..bb7505d648 --- /dev/null +++ b/Mage.Sets/src/mage/cards/l/LocthwainLancer.java @@ -0,0 +1,57 @@ +package mage.cards.l; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.DiesCreatureTriggeredAbility; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.LoseLifeOpponentsEffect; +import mage.abilities.keyword.MenaceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledPermanent; +import mage.filter.predicate.permanent.TokenPredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class LocthwainLancer extends CardImpl { + + private static final FilterPermanent filter = new FilterControlledPermanent( + SubType.KNIGHT, "a nontoken Knight you control" + ); + + static { + filter.add(TokenPredicate.FALSE); + } + + public LocthwainLancer(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.KNIGHT); + this.power = new MageInt(5); + this.toughness = new MageInt(5); + + // Menace + this.addAbility(new MenaceAbility()); + + // Whenever a nontoken Knight you control dies, each opponent loses 1 life and you draw a card. + Ability ability = new DiesCreatureTriggeredAbility(new LoseLifeOpponentsEffect(1), false, filter); + ability.addEffect(new DrawCardSourceControllerEffect(1).concatBy("and")); + this.addAbility(ability); + } + + private LocthwainLancer(final LocthwainLancer card) { + super(card); + } + + @Override + public LocthwainLancer copy() { + return new LocthwainLancer(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarchOfTheMachineCommander.java b/Mage.Sets/src/mage/sets/MarchOfTheMachineCommander.java index ab1bb95151..e14ed2be34 100644 --- a/Mage.Sets/src/mage/sets/MarchOfTheMachineCommander.java +++ b/Mage.Sets/src/mage/sets/MarchOfTheMachineCommander.java @@ -175,6 +175,7 @@ public final class MarchOfTheMachineCommander extends ExpansionSet { cards.add(new SetCardInfo("Kykar, Wind's Fury", 334, Rarity.MYTHIC, mage.cards.k.KykarWindsFury.class)); cards.add(new SetCardInfo("Liliana's Standard Bearer", 255, Rarity.RARE, mage.cards.l.LilianasStandardBearer.class)); cards.add(new SetCardInfo("Llanowar Reborn", 413, Rarity.UNCOMMON, mage.cards.l.LlanowarReborn.class)); + cards.add(new SetCardInfo("Locthwain Lancer", 27, Rarity.RARE, mage.cards.l.LocthwainLancer.class)); cards.add(new SetCardInfo("Managorger Hydra", 307, Rarity.RARE, mage.cards.m.ManagorgerHydra.class)); cards.add(new SetCardInfo("Massacre Wurm", 256, Rarity.MYTHIC, mage.cards.m.MassacreWurm.class)); cards.add(new SetCardInfo("Master Splicer", 194, Rarity.UNCOMMON, mage.cards.m.MasterSplicer.class));