From 0ae1bde48dabe7de23571aa9326a5ab4833cda3d Mon Sep 17 00:00:00 2001 From: theelk801 Date: Fri, 27 Jan 2023 09:43:18 -0500 Subject: [PATCH] [ONE] Implement Mandible Justiciar --- .../src/mage/cards/m/MandibleJusticiar.java | 54 +++++++++++++++++++ .../src/mage/sets/PhyrexiaAllWillBeOne.java | 1 + 2 files changed, 55 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/m/MandibleJusticiar.java diff --git a/Mage.Sets/src/mage/cards/m/MandibleJusticiar.java b/Mage.Sets/src/mage/cards/m/MandibleJusticiar.java new file mode 100644 index 0000000000..0ffb07f740 --- /dev/null +++ b/Mage.Sets/src/mage/cards/m/MandibleJusticiar.java @@ -0,0 +1,54 @@ +package mage.cards.m; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility; +import mage.abilities.effects.common.continuous.BoostSourceEffect; +import mage.abilities.keyword.LifelinkAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterArtifactPermanent; +import mage.filter.predicate.mageobject.AnotherPredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class MandibleJusticiar extends CardImpl { + + private static final FilterPermanent filter = new FilterArtifactPermanent("another artifact"); + + static { + filter.add(AnotherPredicate.instance); + } + + public MandibleJusticiar(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{1}{W}"); + + this.subtype.add(SubType.PHYREXIAN); + this.subtype.add(SubType.CLERIC); + this.power = new MageInt(2); + this.toughness = new MageInt(1); + + // Lifelink + this.addAbility(LifelinkAbility.getInstance()); + + // Whenever another artifact enters the battlefield under your control, Mandible Justiciar gets +1/+1 until end of turn. + this.addAbility(new EntersBattlefieldControlledTriggeredAbility( + new BoostSourceEffect(1, 1, Duration.EndOfTurn), filter + )); + } + + private MandibleJusticiar(final MandibleJusticiar card) { + super(card); + } + + @Override + public MandibleJusticiar copy() { + return new MandibleJusticiar(this); + } +} diff --git a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java index 131c952a84..6444940652 100644 --- a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java +++ b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java @@ -97,6 +97,7 @@ public final class PhyrexiaAllWillBeOne extends ExpansionSet { cards.add(new SetCardInfo("Leonin Lightbringer", 20, Rarity.COMMON, mage.cards.l.LeoninLightbringer.class)); cards.add(new SetCardInfo("Malcator's Watcher", 58, Rarity.COMMON, mage.cards.m.MalcatorsWatcher.class)); cards.add(new SetCardInfo("Malcator, Purity Overseer", 208, Rarity.RARE, mage.cards.m.MalcatorPurityOverseer.class)); + cards.add(new SetCardInfo("Mandible Justiciar", 21, Rarity.COMMON, mage.cards.m.MandibleJusticiar.class)); cards.add(new SetCardInfo("Maze Skullbomb", 231, Rarity.COMMON, mage.cards.m.MazeSkullbomb.class)); cards.add(new SetCardInfo("Mercurial Spelldancer", 61, Rarity.RARE, mage.cards.m.MercurialSpelldancer.class)); cards.add(new SetCardInfo("Mesmerizing Dose", 62, Rarity.COMMON, mage.cards.m.MesmerizingDose.class));