From a1ac6646bb950607707bed7d0639dc50b6629aee Mon Sep 17 00:00:00 2001 From: theelk801 Date: Fri, 27 Jan 2023 09:10:40 -0500 Subject: [PATCH] [ONE] Implement Copper Longlegs --- .../src/mage/cards/c/CopperLonglegs.java | 47 +++++++++++++++++++ .../src/mage/sets/PhyrexiaAllWillBeOne.java | 1 + 2 files changed, 48 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/c/CopperLonglegs.java diff --git a/Mage.Sets/src/mage/cards/c/CopperLonglegs.java b/Mage.Sets/src/mage/cards/c/CopperLonglegs.java new file mode 100644 index 0000000000..aca0282e1e --- /dev/null +++ b/Mage.Sets/src/mage/cards/c/CopperLonglegs.java @@ -0,0 +1,47 @@ +package mage.cards.c; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.counter.ProliferateEffect; +import mage.abilities.keyword.ReachAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class CopperLonglegs extends CardImpl { + + public CopperLonglegs(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}"); + + this.subtype.add(SubType.PHYREXIAN); + this.subtype.add(SubType.SPIDER); + this.power = new MageInt(1); + this.toughness = new MageInt(3); + + // Reach + this.addAbility(ReachAbility.getInstance()); + + // {1}{G}, Sacrifice Copper Longlegs: Proliferate. + Ability ability = new SimpleActivatedAbility(new ProliferateEffect(), new ManaCostsImpl<>("{1}{G}")); + ability.addCost(new SacrificeSourceCost()); + this.addAbility(ability); + } + + private CopperLonglegs(final CopperLonglegs card) { + super(card); + } + + @Override + public CopperLonglegs copy() { + return new CopperLonglegs(this); + } +} diff --git a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java index 1a6cc41772..dc7bc730d6 100644 --- a/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java +++ b/Mage.Sets/src/mage/sets/PhyrexiaAllWillBeOne.java @@ -49,6 +49,7 @@ public final class PhyrexiaAllWillBeOne extends ExpansionSet { cards.add(new SetCardInfo("Chimney Rabble", 126, Rarity.COMMON, mage.cards.c.ChimneyRabble.class)); cards.add(new SetCardInfo("Chittering Skitterling", 87, Rarity.UNCOMMON, mage.cards.c.ChitteringSkitterling.class)); cards.add(new SetCardInfo("Chrome Prowler", 45, Rarity.COMMON, mage.cards.c.ChromeProwler.class)); + cards.add(new SetCardInfo("Copper Longlegs", 165, Rarity.COMMON, mage.cards.c.CopperLonglegs.class)); cards.add(new SetCardInfo("Copperline Gorge", 249, Rarity.RARE, mage.cards.c.CopperlineGorge.class)); cards.add(new SetCardInfo("Crawling Chorus", 8, Rarity.COMMON, mage.cards.c.CrawlingChorus.class)); cards.add(new SetCardInfo("Cutthroat Centurion", 89, Rarity.COMMON, mage.cards.c.CutthroatCenturion.class));