From ab0c7dbc244d7a6d9747836a154a12ddde0d4c7f Mon Sep 17 00:00:00 2001 From: theelk801 Date: Wed, 7 Jun 2023 22:01:18 -0400 Subject: [PATCH] [LTR] Implement Erkenbrand, Lord of the Westfold --- .../cards/e/ErkenbrandLordOfTheWestfold.java | 48 +++++++++++++++++++ .../TheLordOfTheRingsTalesOfMiddleEarth.java | 1 + 2 files changed, 49 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/e/ErkenbrandLordOfTheWestfold.java diff --git a/Mage.Sets/src/mage/cards/e/ErkenbrandLordOfTheWestfold.java b/Mage.Sets/src/mage/cards/e/ErkenbrandLordOfTheWestfold.java new file mode 100644 index 0000000000..ae1989f9eb --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/ErkenbrandLordOfTheWestfold.java @@ -0,0 +1,48 @@ +package mage.cards.e; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldThisOrAnotherTriggeredAbility; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ErkenbrandLordOfTheWestfold extends CardImpl { + + private static final FilterPermanent filter = new FilterCreaturePermanent(SubType.HUMAN, "Human creature"); + + public ErkenbrandLordOfTheWestfold(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.SOLDIER); + this.power = new MageInt(3); + this.toughness = new MageInt(3); + + // Whenever Erkenbrand, Lord of the Westfold or another Human creature enters the battlefield under your control, creatures you control get +1/+0 until end of turn. + this.addAbility(new EntersBattlefieldThisOrAnotherTriggeredAbility( + new BoostControlledEffect(1, 0, Duration.EndOfTurn), + filter, false, true + )); + } + + private ErkenbrandLordOfTheWestfold(final ErkenbrandLordOfTheWestfold card) { + super(card); + } + + @Override + public ErkenbrandLordOfTheWestfold copy() { + return new ErkenbrandLordOfTheWestfold(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java index c571e49971..f186fe67ac 100644 --- a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java +++ b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java @@ -43,6 +43,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet { cards.add(new SetCardInfo("Eastfarthing Farmer", 8, Rarity.COMMON, mage.cards.e.EastfarthingFarmer.class)); cards.add(new SetCardInfo("Elrond, Lord of Rivendell", 49, Rarity.UNCOMMON, mage.cards.e.ElrondLordOfRivendell.class)); cards.add(new SetCardInfo("Eowyn, Fearless Knight", 201, Rarity.RARE, mage.cards.e.EowynFearlessKnight.class)); + cards.add(new SetCardInfo("Erkenbrand, Lord of the Westfold", 123, Rarity.UNCOMMON, mage.cards.e.ErkenbrandLordOfTheWestfold.class)); cards.add(new SetCardInfo("Fall of Gil-galad", 165, Rarity.RARE, mage.cards.f.FallOfGilGalad.class)); cards.add(new SetCardInfo("Fangorn, Tree Shepherd", 166, Rarity.RARE, mage.cards.f.FangornTreeShepherd.class)); cards.add(new SetCardInfo("Fiery Inscription", 126, Rarity.UNCOMMON, mage.cards.f.FieryInscription.class));