From b7fd099f3505ce00a69279a1d9976f1027f54a41 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 3 Sep 2020 15:04:27 -0400 Subject: [PATCH] [ZNR] Implemented Sejiri Shelter / Sejiri Glacier --- Mage.Sets/src/mage/cards/s/SejiriGlacier.java | 37 +++++++++++++++++++ Mage.Sets/src/mage/cards/s/SejiriShelter.java | 36 ++++++++++++++++++ Mage.Sets/src/mage/sets/ZendikarRising.java | 2 + 3 files changed, 75 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/SejiriGlacier.java create mode 100644 Mage.Sets/src/mage/cards/s/SejiriShelter.java diff --git a/Mage.Sets/src/mage/cards/s/SejiriGlacier.java b/Mage.Sets/src/mage/cards/s/SejiriGlacier.java new file mode 100644 index 0000000000..79e75fd0d7 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SejiriGlacier.java @@ -0,0 +1,37 @@ +package mage.cards.s; + +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 SejiriGlacier extends CardImpl { + + public SejiriGlacier(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.LAND}, ""); + + this.modalDFC = true; + this.nightCard = true; + + // Sejiri Glacier enters the battlefield tapped. + this.addAbility(new EntersBattlefieldTappedAbility()); + + // {T}: Add {W}. + this.addAbility(new WhiteManaAbility()); + } + + private SejiriGlacier(final SejiriGlacier card) { + super(card); + } + + @Override + public SejiriGlacier copy() { + return new SejiriGlacier(this); + } +} diff --git a/Mage.Sets/src/mage/cards/s/SejiriShelter.java b/Mage.Sets/src/mage/cards/s/SejiriShelter.java new file mode 100644 index 0000000000..5dffd6e2d5 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SejiriShelter.java @@ -0,0 +1,36 @@ +package mage.cards.s; + +import mage.abilities.effects.common.continuous.GainProtectionFromColorTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.target.common.TargetControlledCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class SejiriShelter extends CardImpl { + + public SejiriShelter(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}"); + + this.modalDFC = true; + this.secondSideCardClazz = mage.cards.s.SejiriGlacier.class; + + // Target creature you control gains protection from the color of your choice until end of turn. + this.getSpellAbility().addEffect(new GainProtectionFromColorTargetEffect(Duration.EndOfTurn)); + this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); + } + + private SejiriShelter(final SejiriShelter card) { + super(card); + } + + @Override + public SejiriShelter copy() { + return new SejiriShelter(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ZendikarRising.java b/Mage.Sets/src/mage/sets/ZendikarRising.java index 5e1d2e9c72..b775fa0503 100644 --- a/Mage.Sets/src/mage/sets/ZendikarRising.java +++ b/Mage.Sets/src/mage/sets/ZendikarRising.java @@ -146,6 +146,8 @@ public final class ZendikarRising extends ExpansionSet { cards.add(new SetCardInfo("Roiling Regrowth", 201, Rarity.UNCOMMON, mage.cards.r.RoilingRegrowth.class)); cards.add(new SetCardInfo("Ruin Crab", 75, Rarity.UNCOMMON, mage.cards.r.RuinCrab.class)); cards.add(new SetCardInfo("Sea Gate Colossus", 251, Rarity.COMMON, mage.cards.s.SeaGateColossus.class)); + cards.add(new SetCardInfo("Sejiri Glacier", 37, Rarity.UNCOMMON, mage.cards.s.SejiriGlacier.class)); + cards.add(new SetCardInfo("Sejiri Shelter", 37, Rarity.UNCOMMON, mage.cards.s.SejiriShelter.class)); cards.add(new SetCardInfo("Shell Shield", 79, Rarity.COMMON, mage.cards.s.ShellShield.class)); cards.add(new SetCardInfo("Shepherd of Heroes", 38, Rarity.COMMON, mage.cards.s.ShepherdOfHeroes.class)); cards.add(new SetCardInfo("Skyclave Geopede", 163, Rarity.UNCOMMON, mage.cards.s.SkyclaveGeopede.class));