1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-07 13:01:06 -09:00

Implemented Omen of the Forge

This commit is contained in:
Evan Kranzler 2020-01-03 15:08:52 -05:00
parent 9eb186cea9
commit c39bfad63c
2 changed files with 51 additions and 0 deletions
Mage.Sets/src/mage

View file

@ -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);
}
}

View file

@ -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));