From c39bfad63cc28b59d6ea86aeeb44f3c5a93f9f9e Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 3 Jan 2020 15:08:52 -0500 Subject: [PATCH] Implemented Omen of the Forge --- .../src/mage/cards/o/OmenOfTheForge.java | 50 +++++++++++++++++++ .../src/mage/sets/TherosBeyondDeath.java | 1 + 2 files changed, 51 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/o/OmenOfTheForge.java diff --git a/Mage.Sets/src/mage/cards/o/OmenOfTheForge.java b/Mage.Sets/src/mage/cards/o/OmenOfTheForge.java new file mode 100644 index 00000000000..435b7875a77 --- /dev/null +++ b/Mage.Sets/src/mage/cards/o/OmenOfTheForge.java @@ -0,0 +1,50 @@ +package mage.cards.o; + +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.keyword.ScryEffect; +import mage.abilities.keyword.FlashAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetAnyTarget; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class OmenOfTheForge extends CardImpl { + + public OmenOfTheForge(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{R}"); + + // Flash + this.addAbility(FlashAbility.getInstance()); + + // When Omen of the Forge enters the battlefield, it deals 2 damage to any target. + Ability ability = new EntersBattlefieldTriggeredAbility( + new DamageTargetEffect(2, "it") + ); + ability.addTarget(new TargetAnyTarget()); + this.addAbility(ability); + + // {2}{R}, Sacrifice Omen of the Forge: Scry 2. + ability = new SimpleActivatedAbility(new ScryEffect(2), new ManaCostsImpl("{2}{R}")); + ability.addCost(new SacrificeSourceCost()); + this.addAbility(ability); + } + + private OmenOfTheForge(final OmenOfTheForge card) { + super(card); + } + + @Override + public OmenOfTheForge copy() { + return new OmenOfTheForge(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index 6ab11d4fde4..bb2a122cc08 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -80,6 +80,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("Nyx Lotus", 235, Rarity.RARE, mage.cards.n.NyxLotus.class)); cards.add(new SetCardInfo("Nyxborn Colossus", 191, Rarity.COMMON, mage.cards.n.NyxbornColossus.class)); cards.add(new SetCardInfo("Nyxborn Courser", 29, Rarity.COMMON, mage.cards.n.NyxbornCourser.class)); + cards.add(new SetCardInfo("Omen of the Forge", 145, Rarity.COMMON, mage.cards.o.OmenOfTheForge.class)); cards.add(new SetCardInfo("Omen of the Sea", 58, Rarity.COMMON, mage.cards.o.OmenOfTheSea.class)); cards.add(new SetCardInfo("Omen of the Sun", 30, Rarity.COMMON, mage.cards.o.OmenOfTheSun.class)); cards.add(new SetCardInfo("Ox of Agonas", 147, Rarity.MYTHIC, mage.cards.o.OxOfAgonas.class));