From 7bd016d4cb29b313341273c551b03e28c5b3077f Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 31 May 2019 19:17:57 -0400 Subject: [PATCH] Implemented Lancer Sliver --- Mage.Sets/src/mage/cards/l/LancerSliver.java | 43 ++++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons.java | 1 + 2 files changed, 44 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/l/LancerSliver.java diff --git a/Mage.Sets/src/mage/cards/l/LancerSliver.java b/Mage.Sets/src/mage/cards/l/LancerSliver.java new file mode 100644 index 0000000000..c1eccc2891 --- /dev/null +++ b/Mage.Sets/src/mage/cards/l/LancerSliver.java @@ -0,0 +1,43 @@ +package mage.cards.l; + +import mage.MageInt; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; +import mage.abilities.keyword.FirstStrikeAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class LancerSliver extends CardImpl { + + public LancerSliver(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}"); + + this.subtype.add(SubType.SLIVER); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Sliver creatures you control have first strike. + this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect( + FirstStrikeAbility.getInstance(), Duration.WhileOnBattlefield, + StaticFilters.FILTER_PERMANENT_CREATURE_SLIVERS + ))); + } + + private LancerSliver(final LancerSliver card) { + super(card); + } + + @Override + public LancerSliver copy() { + return new LancerSliver(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons.java b/Mage.Sets/src/mage/sets/ModernHorizons.java index 05d33a390e..26a87dc863 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons.java @@ -117,6 +117,7 @@ public final class ModernHorizons extends ExpansionSet { cards.add(new SetCardInfo("King of the Pride", 16, Rarity.UNCOMMON, mage.cards.k.KingOfThePride.class)); cards.add(new SetCardInfo("Knight of Old Benalia", 17, Rarity.COMMON, mage.cards.k.KnightOfOldBenalia.class)); cards.add(new SetCardInfo("Krosan Tusker", 169, Rarity.COMMON, mage.cards.k.KrosanTusker.class)); + cards.add(new SetCardInfo("Lancer Sliver", 18, Rarity.COMMON, mage.cards.l.LancerSliver.class)); cards.add(new SetCardInfo("Lava Dart", 134, Rarity.COMMON, mage.cards.l.LavaDart.class)); cards.add(new SetCardInfo("Lavabelly Sliver", 207, Rarity.UNCOMMON, mage.cards.l.LavabellySliver.class)); cards.add(new SetCardInfo("Lesser Masticore", 225, Rarity.UNCOMMON, mage.cards.l.LesserMasticore.class));