From 0c61973772317655eb80bea02de87b34c39808f2 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 7 Sep 2020 21:12:19 -0400 Subject: [PATCH] [ZNR] Implemented Ondu Inversion / Ondu Skyruins --- Mage.Sets/src/mage/cards/o/OnduInversion.java | 34 +++++++++++++++++ Mage.Sets/src/mage/cards/o/OnduSkyruins.java | 37 +++++++++++++++++++ Mage.Sets/src/mage/sets/ZendikarRising.java | 2 + 3 files changed, 73 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/o/OnduInversion.java create mode 100644 Mage.Sets/src/mage/cards/o/OnduSkyruins.java diff --git a/Mage.Sets/src/mage/cards/o/OnduInversion.java b/Mage.Sets/src/mage/cards/o/OnduInversion.java new file mode 100644 index 0000000000..62c716c341 --- /dev/null +++ b/Mage.Sets/src/mage/cards/o/OnduInversion.java @@ -0,0 +1,34 @@ +package mage.cards.o; + +import mage.abilities.effects.common.DestroyAllEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class OnduInversion extends CardImpl { + + public OnduInversion(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{6}{W}{W}"); + + this.modalDFC = true; + this.secondSideCardClazz = mage.cards.o.OnduInversion.class; + + // Destroy all nonland permanents. + this.getSpellAbility().addEffect(new DestroyAllEffect(StaticFilters.FILTER_PERMANENTS_NON_LAND)); + } + + private OnduInversion(final OnduInversion card) { + super(card); + } + + @Override + public OnduInversion copy() { + return new OnduInversion(this); + } +} diff --git a/Mage.Sets/src/mage/cards/o/OnduSkyruins.java b/Mage.Sets/src/mage/cards/o/OnduSkyruins.java new file mode 100644 index 0000000000..58f520c993 --- /dev/null +++ b/Mage.Sets/src/mage/cards/o/OnduSkyruins.java @@ -0,0 +1,37 @@ +package mage.cards.o; + +import mage.abilities.common.EntersBattlefieldTappedAbility; +import mage.abilities.mana.WhiteManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class OnduSkyruins extends CardImpl { + + public OnduSkyruins(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); + + this.modalDFC = true; + this.nightCard = true; + + // Ondu Skyruins enters the battlefield tapped. + this.addAbility(new EntersBattlefieldTappedAbility()); + + // {T}: Add {W}. + this.addAbility(new WhiteManaAbility()); + } + + private OnduSkyruins(final OnduSkyruins card) { + super(card); + } + + @Override + public OnduSkyruins copy() { + return new OnduSkyruins(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ZendikarRising.java b/Mage.Sets/src/mage/sets/ZendikarRising.java index 059be302ec..1d19a5de90 100644 --- a/Mage.Sets/src/mage/sets/ZendikarRising.java +++ b/Mage.Sets/src/mage/sets/ZendikarRising.java @@ -215,6 +215,8 @@ public final class ZendikarRising extends ExpansionSet { cards.add(new SetCardInfo("Nissa's Zendikon", 197, Rarity.COMMON, mage.cards.n.NissasZendikon.class)); cards.add(new SetCardInfo("Oblivion's Hunger", 119, Rarity.COMMON, mage.cards.o.OblivionsHunger.class)); cards.add(new SetCardInfo("Omnath, Locus of Creation", 232, Rarity.MYTHIC, mage.cards.o.OmnathLocusOfCreation.class)); + cards.add(new SetCardInfo("Ondu Inversion", 30, Rarity.RARE, mage.cards.o.OnduInversion.class)); + cards.add(new SetCardInfo("Ondu Skyruins", 30, Rarity.RARE, mage.cards.o.OnduSkyruins.class)); cards.add(new SetCardInfo("Orah, Skyclave Hierophant", 233, Rarity.RARE, mage.cards.o.OrahSkyclaveHierophant.class)); cards.add(new SetCardInfo("Paired Tactician", 31, Rarity.UNCOMMON, mage.cards.p.PairedTactician.class)); cards.add(new SetCardInfo("Pelakka Caverns", 120, Rarity.UNCOMMON, mage.cards.p.PelakkaCaverns.class));