From 4dca0c2650db0a6e98c907b5189d7f418755ca67 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 21 Jun 2018 22:34:11 -0400 Subject: [PATCH] Implemented Ravenous Harpy --- Mage.Sets/src/mage/cards/r/RavenousHarpy.java | 56 +++++++++++++++++++ Mage.Sets/src/mage/sets/CoreSet2019.java | 1 + 2 files changed, 57 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/r/RavenousHarpy.java diff --git a/Mage.Sets/src/mage/cards/r/RavenousHarpy.java b/Mage.Sets/src/mage/cards/r/RavenousHarpy.java new file mode 100644 index 0000000000..1e0184f7cd --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/RavenousHarpy.java @@ -0,0 +1,56 @@ +package mage.cards.r; + +import java.util.UUID; +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.common.counter.AddCountersSourceEffect; +import mage.constants.SubType; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Zone; +import mage.counters.CounterType; +import mage.filter.StaticFilters; +import mage.target.common.TargetControlledPermanent; + +/** + * + * @author TheElk801 + */ +public final class RavenousHarpy extends CardImpl { + + public RavenousHarpy(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}"); + + this.subtype.add(SubType.HARPY); + this.power = new MageInt(1); + this.toughness = new MageInt(2); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // {1}, Sacrifice another creature: Put a +1/+1 counter on Ravenous Harpy. + Ability ability = new SimpleActivatedAbility( + Zone.BATTLEFIELD, + new AddCountersSourceEffect(CounterType.P1P1.createInstance()), + new GenericManaCost(1) + ); + ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent( + StaticFilters.FILTER_CONTROLLED_ANOTHER_CREATURE + ))); + this.addAbility(ability); + } + + public RavenousHarpy(final RavenousHarpy card) { + super(card); + } + + @Override + public RavenousHarpy copy() { + return new RavenousHarpy(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2019.java b/Mage.Sets/src/mage/sets/CoreSet2019.java index e9020acd5f..1340bb9d75 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2019.java +++ b/Mage.Sets/src/mage/sets/CoreSet2019.java @@ -185,6 +185,7 @@ public final class CoreSet2019 extends ExpansionSet { cards.add(new SetCardInfo("Psychic Symbiont", 221, Rarity.UNCOMMON, mage.cards.p.PsychicSymbiont.class)); cards.add(new SetCardInfo("Rabid Bite", 195, Rarity.COMMON, mage.cards.r.RabidBite.class)); cards.add(new SetCardInfo("Radiating Lightning", 313, Rarity.COMMON, mage.cards.r.RadiatingLightning.class)); + cards.add(new SetCardInfo("Ravenous Harpy", 115, Rarity.UNCOMMON, mage.cards.r.RavenousHarpy.class)); cards.add(new SetCardInfo("Reassembling Skeleton", 116, Rarity.UNCOMMON, mage.cards.r.ReassemblingSkeleton.class)); cards.add(new SetCardInfo("Reclamation Sage", 196, Rarity.UNCOMMON, mage.cards.r.ReclamationSage.class)); cards.add(new SetCardInfo("Recollect", 197, Rarity.UNCOMMON, mage.cards.r.Recollect.class));