From d0d566e1710b3570abd9ff20608fa5358bd64de7 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 27 May 2021 20:20:27 -0400 Subject: [PATCH] [MH2] Implemented Legion Vanguard --- .../src/mage/cards/l/LegionVanguard.java | 49 +++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons2.java | 1 + 2 files changed, 50 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/l/LegionVanguard.java diff --git a/Mage.Sets/src/mage/cards/l/LegionVanguard.java b/Mage.Sets/src/mage/cards/l/LegionVanguard.java new file mode 100644 index 0000000000..68cca9d72a --- /dev/null +++ b/Mage.Sets/src/mage/cards/l/LegionVanguard.java @@ -0,0 +1,49 @@ +package mage.cards.l; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.SacrificeTargetCost; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.keyword.ExploreSourceEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.StaticFilters; +import mage.target.common.TargetControlledPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class LegionVanguard extends CardImpl { + + public LegionVanguard(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}"); + + this.subtype.add(SubType.VAMPIRE); + this.subtype.add(SubType.SOLDIER); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // {1}, Sacrifice another creature: Legion Vanguard explores. + Ability ability = new SimpleActivatedAbility( + new ExploreSourceEffect(true, "{this}"), new GenericManaCost(1) + ); + ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent( + StaticFilters.FILTER_CONTROLLED_ANOTHER_CREATURE + ))); + this.addAbility(ability); + } + + private LegionVanguard(final LegionVanguard card) { + super(card); + } + + @Override + public LegionVanguard copy() { + return new LegionVanguard(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons2.java b/Mage.Sets/src/mage/sets/ModernHorizons2.java index d541cea009..10e3f1e671 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons2.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons2.java @@ -66,6 +66,7 @@ public final class ModernHorizons2 extends ExpansionSet { cards.add(new SetCardInfo("Island", 483, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Kitchen Imp", 89, Rarity.COMMON, mage.cards.k.KitchenImp.class)); cards.add(new SetCardInfo("Late to Dinner", 19, Rarity.COMMON, mage.cards.l.LateToDinner.class)); + cards.add(new SetCardInfo("Legion Vanguard", 90, Rarity.UNCOMMON, mage.cards.l.LegionVanguard.class)); cards.add(new SetCardInfo("Lucid Dreams", 50, Rarity.UNCOMMON, mage.cards.l.LucidDreams.class)); cards.add(new SetCardInfo("Marsh Flats", 248, Rarity.RARE, mage.cards.m.MarshFlats.class)); cards.add(new SetCardInfo("Mental Journey", 51, Rarity.COMMON, mage.cards.m.MentalJourney.class));