From 5c1df0b294c0f79ad3d84188ac2eacadc038a917 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 3 Sep 2020 14:20:04 -0400 Subject: [PATCH] [ZNR] Implemented Khalni Ambush / Khalni Territory --- Mage.Sets/src/mage/cards/k/KhalniAmbush.java | 38 +++++++++++++++++++ .../src/mage/cards/k/KhalniTerritory.java | 37 ++++++++++++++++++ Mage.Sets/src/mage/sets/ZendikarRising.java | 2 + 3 files changed, 77 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/k/KhalniAmbush.java create mode 100644 Mage.Sets/src/mage/cards/k/KhalniTerritory.java diff --git a/Mage.Sets/src/mage/cards/k/KhalniAmbush.java b/Mage.Sets/src/mage/cards/k/KhalniAmbush.java new file mode 100644 index 0000000000..73eece0b0e --- /dev/null +++ b/Mage.Sets/src/mage/cards/k/KhalniAmbush.java @@ -0,0 +1,38 @@ +package mage.cards.k; + +import mage.abilities.effects.common.FightTargetsEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; +import mage.target.common.TargetControlledCreaturePermanent; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class KhalniAmbush extends CardImpl { + + public KhalniAmbush(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{G}"); + + this.modalDFC = true; + this.secondSideCardClazz = mage.cards.k.KhalniTerritory.class; + + // Target creature you control fights target creature you don't control. + this.getSpellAbility().addEffect(new FightTargetsEffect()); + this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); + this.getSpellAbility().addTarget(new TargetCreaturePermanent(StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL)); + } + + private KhalniAmbush(final KhalniAmbush card) { + super(card); + } + + @Override + public KhalniAmbush copy() { + return new KhalniAmbush(this); + } +} diff --git a/Mage.Sets/src/mage/cards/k/KhalniTerritory.java b/Mage.Sets/src/mage/cards/k/KhalniTerritory.java new file mode 100644 index 0000000000..d9c1e6f6e8 --- /dev/null +++ b/Mage.Sets/src/mage/cards/k/KhalniTerritory.java @@ -0,0 +1,37 @@ +package mage.cards.k; + +import mage.abilities.common.EntersBattlefieldTappedAbility; +import mage.abilities.mana.GreenManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class KhalniTerritory extends CardImpl { + + public KhalniTerritory(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); + + this.modalDFC = true; + this.nightCard = true; + + // Khalni Territory enters the battlefield tapped. + this.addAbility(new EntersBattlefieldTappedAbility()); + + // {T}: Add {G}. + this.addAbility(new GreenManaAbility()); + } + + private KhalniTerritory(final KhalniTerritory card) { + super(card); + } + + @Override + public KhalniTerritory copy() { + return new KhalniTerritory(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ZendikarRising.java b/Mage.Sets/src/mage/sets/ZendikarRising.java index d2c799e2a0..efad5c90ef 100644 --- a/Mage.Sets/src/mage/sets/ZendikarRising.java +++ b/Mage.Sets/src/mage/sets/ZendikarRising.java @@ -119,6 +119,8 @@ public final class ZendikarRising extends ExpansionSet { cards.add(new SetCardInfo("Island", 269, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS)); cards.add(new SetCardInfo("Jace, Mirror Mage", 63, Rarity.MYTHIC, mage.cards.j.JaceMirrorMage.class)); cards.add(new SetCardInfo("Kabira Outrider", 18, Rarity.COMMON, mage.cards.k.KabiraOutrider.class)); + cards.add(new SetCardInfo("Khalni Ambush", 192, Rarity.UNCOMMON, mage.cards.k.KhalniAmbush.class)); + cards.add(new SetCardInfo("Khalni Territory", 192, Rarity.UNCOMMON, mage.cards.k.KhalniTerritory.class)); cards.add(new SetCardInfo("Kitesail Cleric", 20, Rarity.UNCOMMON, mage.cards.k.KitesailCleric.class)); cards.add(new SetCardInfo("Kor Blademaster", 21, Rarity.UNCOMMON, mage.cards.k.KorBlademaster.class)); cards.add(new SetCardInfo("Lavaglide Pathway", 264, Rarity.RARE, mage.cards.l.LavaglidePathway.class));