From 3c5a8dc9211e7fdff445ba2c8f566f2a238b029a Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 3 Sep 2020 14:16:41 -0400 Subject: [PATCH] [ZNR] Implemented Bala Ged Recovery / Bala Ged Sanctuary --- .../src/mage/cards/b/BalaGedRecovery.java | 35 ++++++++++++++++++ .../src/mage/cards/b/BalaGedSanctuary.java | 37 +++++++++++++++++++ Mage.Sets/src/mage/sets/ZendikarRising.java | 2 + 3 files changed, 74 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/b/BalaGedRecovery.java create mode 100644 Mage.Sets/src/mage/cards/b/BalaGedSanctuary.java diff --git a/Mage.Sets/src/mage/cards/b/BalaGedRecovery.java b/Mage.Sets/src/mage/cards/b/BalaGedRecovery.java new file mode 100644 index 0000000000..bfabd1b213 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BalaGedRecovery.java @@ -0,0 +1,35 @@ +package mage.cards.b; + +import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetCardInYourGraveyard; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class BalaGedRecovery extends CardImpl { + + public BalaGedRecovery(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{G}"); + + this.modalDFC = true; + this.secondSideCardClazz = mage.cards.b.BalaGedSanctuary.class; + + // Return target card from your graveyard to your hand. + this.getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect()); + this.getSpellAbility().addTarget(new TargetCardInYourGraveyard()); + } + + private BalaGedRecovery(final BalaGedRecovery card) { + super(card); + } + + @Override + public BalaGedRecovery copy() { + return new BalaGedRecovery(this); + } +} diff --git a/Mage.Sets/src/mage/cards/b/BalaGedSanctuary.java b/Mage.Sets/src/mage/cards/b/BalaGedSanctuary.java new file mode 100644 index 0000000000..097234668c --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BalaGedSanctuary.java @@ -0,0 +1,37 @@ +package mage.cards.b; + +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 BalaGedSanctuary extends CardImpl { + + public BalaGedSanctuary(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); + + this.modalDFC = true; + this.nightCard = true; + + // Bala Ged Sanctuary enters the battlefield tapped. + this.addAbility(new EntersBattlefieldTappedAbility()); + + // {T}: Add {G}. + this.addAbility(new GreenManaAbility()); + } + + private BalaGedSanctuary(final BalaGedSanctuary card) { + super(card); + } + + @Override + public BalaGedSanctuary copy() { + return new BalaGedSanctuary(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ZendikarRising.java b/Mage.Sets/src/mage/sets/ZendikarRising.java index a66b296171..d2c799e2a0 100644 --- a/Mage.Sets/src/mage/sets/ZendikarRising.java +++ b/Mage.Sets/src/mage/sets/ZendikarRising.java @@ -92,6 +92,8 @@ public final class ZendikarRising extends ExpansionSet { cards.add(new SetCardInfo("Archpriest of Iona", 5, Rarity.RARE, mage.cards.a.ArchpriestOfIona.class)); cards.add(new SetCardInfo("Ardent Electromancer", 135, Rarity.COMMON, mage.cards.a.ArdentElectromancer.class)); cards.add(new SetCardInfo("Ashaya, Soul of the Wild", 179, Rarity.MYTHIC, mage.cards.a.AshayaSoulOfTheWild.class)); + cards.add(new SetCardInfo("Bala Ged Recovery", 180, Rarity.UNCOMMON, mage.cards.b.BalaGedRecovery.class)); + cards.add(new SetCardInfo("Bala Ged Sanctuary", 180, Rarity.UNCOMMON, mage.cards.b.BalaGedSanctuary.class)); cards.add(new SetCardInfo("Bloodchief's Thirst", 94, Rarity.UNCOMMON, mage.cards.b.BloodchiefsThirst.class)); cards.add(new SetCardInfo("Boulderloft Pathway", 258, Rarity.RARE, mage.cards.b.BoulderloftPathway.class)); cards.add(new SetCardInfo("Branchloft Pathway", 258, Rarity.RARE, mage.cards.b.BranchloftPathway.class));