From b4025fdd8cafd0387d975fd02bf3808e1bcc649d Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 31 May 2019 19:21:29 -0400 Subject: [PATCH] Implemented Oneirophage --- Mage.Sets/src/mage/cards/o/Oneirophage.java | 45 +++++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons.java | 1 + 2 files changed, 46 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/o/Oneirophage.java diff --git a/Mage.Sets/src/mage/cards/o/Oneirophage.java b/Mage.Sets/src/mage/cards/o/Oneirophage.java new file mode 100644 index 0000000000..256b8e7e33 --- /dev/null +++ b/Mage.Sets/src/mage/cards/o/Oneirophage.java @@ -0,0 +1,45 @@ +package mage.cards.o; + +import mage.MageInt; +import mage.abilities.common.DrawCardControllerTriggeredAbility; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.counters.CounterType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class Oneirophage extends CardImpl { + + public Oneirophage(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}"); + + this.subtype.add(SubType.SQUID); + this.subtype.add(SubType.ILLUSION); + this.power = new MageInt(1); + this.toughness = new MageInt(2); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Whenever you draw a card, put a +1/+1 counter on Oneirophage. + this.addAbility(new DrawCardControllerTriggeredAbility( + new AddCountersSourceEffect(CounterType.P1P1.createInstance()), false + )); + } + + private Oneirophage(final Oneirophage card) { + super(card); + } + + @Override + public Oneirophage copy() { + return new Oneirophage(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons.java b/Mage.Sets/src/mage/sets/ModernHorizons.java index 26a87dc863..d72331c256 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons.java @@ -143,6 +143,7 @@ public final class ModernHorizons extends ExpansionSet { cards.add(new SetCardInfo("Ninja of the New Moon", 99, Rarity.COMMON, mage.cards.n.NinjaOfTheNewMoon.class)); cards.add(new SetCardInfo("Nurturing Peatland", 243, Rarity.RARE, mage.cards.n.NurturingPeatland.class)); cards.add(new SetCardInfo("On Thin Ice", 20, Rarity.RARE, mage.cards.o.OnThinIce.class)); + cards.add(new SetCardInfo("Oneirophage", 60, Rarity.UNCOMMON, mage.cards.o.Oneirophage.class)); cards.add(new SetCardInfo("Orcish Hellraiser", 136, Rarity.COMMON, mage.cards.o.OrcishHellraiser.class)); cards.add(new SetCardInfo("Ore-Scale Guardian", 137, Rarity.UNCOMMON, mage.cards.o.OreScaleGuardian.class)); cards.add(new SetCardInfo("Pashalik Mons", 138, Rarity.RARE, mage.cards.p.PashalikMons.class));