From 9eb186cea9dab34920446fa24fdb09a1b03dae85 Mon Sep 17 00:00:00 2001
From: Evan Kranzler <theelk801@gmail.com>
Date: Fri, 3 Jan 2020 15:03:10 -0500
Subject: [PATCH] Implemented Omen of the Sun

---
 Mage.Sets/src/mage/cards/o/OmenOfTheSun.java  | 51 +++++++++++++++++++
 .../src/mage/sets/TherosBeyondDeath.java      |  1 +
 2 files changed, 52 insertions(+)
 create mode 100644 Mage.Sets/src/mage/cards/o/OmenOfTheSun.java

diff --git a/Mage.Sets/src/mage/cards/o/OmenOfTheSun.java b/Mage.Sets/src/mage/cards/o/OmenOfTheSun.java
new file mode 100644
index 0000000000..ade5b947c5
--- /dev/null
+++ b/Mage.Sets/src/mage/cards/o/OmenOfTheSun.java
@@ -0,0 +1,51 @@
+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.CreateTokenEffect;
+import mage.abilities.effects.common.GainLifeEffect;
+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.game.permanent.token.HumanSoldierToken;
+
+import java.util.UUID;
+
+/**
+ * @author TheElk801
+ */
+public final class OmenOfTheSun extends CardImpl {
+
+    public OmenOfTheSun(UUID ownerId, CardSetInfo setInfo) {
+        super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{W}");
+
+        // Flash
+        this.addAbility(FlashAbility.getInstance());
+
+        // When Omen of the Sun enters the battlefield, create two 1/1 white Human Soldier creature tokens and you gain 2 life.
+        Ability ability = new EntersBattlefieldTriggeredAbility(
+                new CreateTokenEffect(new HumanSoldierToken(), 2)
+        );
+        ability.addEffect(new GainLifeEffect(2).concatBy("and"));
+        this.addAbility(ability);
+
+        // {2}{W}, Sacrifice Omen of the Sun: Scry 2.
+        ability = new SimpleActivatedAbility(new ScryEffect(2), new ManaCostsImpl("{2}{W}"));
+        ability.addCost(new SacrificeSourceCost());
+        this.addAbility(ability);
+    }
+
+    private OmenOfTheSun(final OmenOfTheSun card) {
+        super(card);
+    }
+
+    @Override
+    public OmenOfTheSun copy() {
+        return new OmenOfTheSun(this);
+    }
+}
diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java
index 6cfd08ea77..6ab11d4fde 100644
--- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java
+++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java
@@ -81,6 +81,7 @@ public final class TherosBeyondDeath extends ExpansionSet {
         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 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));
         cards.add(new SetCardInfo("Pharika's Spawn", 112, Rarity.UNCOMMON, mage.cards.p.PharikasSpawn.class));
         cards.add(new SetCardInfo("Plains", 250, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));