From ea41353f9acad5ebf2df3ee60b864592fcd1074f Mon Sep 17 00:00:00 2001 From: theelk801 Date: Fri, 2 Jun 2023 18:08:36 -0400 Subject: [PATCH] [LTR] Implement Lotho, Corrupt Shiriff --- .../mage/cards/l/LothoCorruptShirriff.java | 48 +++++++++++++++++++ .../TheLordOfTheRingsTalesOfMiddleEarth.java | 1 + 2 files changed, 49 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/l/LothoCorruptShirriff.java diff --git a/Mage.Sets/src/mage/cards/l/LothoCorruptShirriff.java b/Mage.Sets/src/mage/cards/l/LothoCorruptShirriff.java new file mode 100644 index 0000000000..c1360ec7ad --- /dev/null +++ b/Mage.Sets/src/mage/cards/l/LothoCorruptShirriff.java @@ -0,0 +1,48 @@ +package mage.cards.l; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.CastSecondSpellTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.LoseLifeSourceControllerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.constants.TargetController; +import mage.game.permanent.token.TreasureToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class LothoCorruptShirriff extends CardImpl { + + public LothoCorruptShirriff(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{W}{B}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.HALFLING); + this.subtype.add(SubType.ROGUE); + this.power = new MageInt(2); + this.toughness = new MageInt(1); + + // Whenever a player casts their second spell each turn, you lose 1 life and create a Treasure token. + Ability ability = new CastSecondSpellTriggeredAbility( + new LoseLifeSourceControllerEffect(1), TargetController.ANY + ); + ability.addEffect(new CreateTokenEffect(new TreasureToken()).concatBy("and")); + this.addAbility(ability); + } + + private LothoCorruptShirriff(final LothoCorruptShirriff card) { + super(card); + } + + @Override + public LothoCorruptShirriff copy() { + return new LothoCorruptShirriff(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java index 20b1691bd1..519e75491b 100644 --- a/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java +++ b/Mage.Sets/src/mage/sets/TheLordOfTheRingsTalesOfMiddleEarth.java @@ -54,6 +54,7 @@ public final class TheLordOfTheRingsTalesOfMiddleEarth extends ExpansionSet { cards.add(new SetCardInfo("Knights of Dol Amroth", 59, Rarity.COMMON, mage.cards.k.KnightsOfDolAmroth.class)); cards.add(new SetCardInfo("Lobelia Sackville-Baggins", 93, Rarity.RARE, mage.cards.l.LobeliaSackvilleBaggins.class)); cards.add(new SetCardInfo("Long List of the Ents", 174, Rarity.UNCOMMON, mage.cards.l.LongListOfTheEnts.class)); + cards.add(new SetCardInfo("Lotho, Corrupt Shirriff", 213, Rarity.RARE, mage.cards.l.LothoCorruptShirriff.class)); cards.add(new SetCardInfo("Many Partings", 176, Rarity.COMMON, mage.cards.m.ManyPartings.class)); cards.add(new SetCardInfo("Mauhur, Uruk-hai Captain", 214, Rarity.UNCOMMON, mage.cards.m.MauhurUrukHaiCaptain.class)); cards.add(new SetCardInfo("Meriadoc Brandybuck", 177, Rarity.UNCOMMON, mage.cards.m.MeriadocBrandybuck.class));