From aef9761e24d7d96790bb0c05b01aeaf05421f32e Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 4 Nov 2022 20:12:33 -0400 Subject: [PATCH] [BRO] Implement Loran's Escape --- Mage.Sets/src/mage/cards/l/LoransEscape.java | 43 ++++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + 2 files changed, 44 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/l/LoransEscape.java diff --git a/Mage.Sets/src/mage/cards/l/LoransEscape.java b/Mage.Sets/src/mage/cards/l/LoransEscape.java new file mode 100644 index 0000000000..233926c1f9 --- /dev/null +++ b/Mage.Sets/src/mage/cards/l/LoransEscape.java @@ -0,0 +1,43 @@ +package mage.cards.l; + +import mage.abilities.effects.common.continuous.GainAbilityTargetEffect; +import mage.abilities.effects.keyword.ScryEffect; +import mage.abilities.keyword.HexproofAbility; +import mage.abilities.keyword.IndestructibleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.filter.StaticFilters; +import mage.target.TargetPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class LoransEscape extends CardImpl { + + public LoransEscape(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{W}"); + + // Target artifact or creature gains hexproof and indestructible until end of turn. Scry 1. + this.getSpellAbility().addEffect(new GainAbilityTargetEffect( + HexproofAbility.getInstance(), Duration.EndOfTurn + ).setText("target artifact or creature gains hexproof")); + this.getSpellAbility().addEffect(new GainAbilityTargetEffect( + IndestructibleAbility.getInstance(), Duration.EndOfTurn + ).setText("and indestructible until end of turn")); + this.getSpellAbility().addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_CREATURE)); + this.getSpellAbility().addEffect(new ScryEffect(1, false)); + } + + private LoransEscape(final LoransEscape card) { + super(card); + } + + @Override + public LoransEscape copy() { + return new LoransEscape(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index ea62d95c8a..34a461eadb 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -126,6 +126,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Levitating Statue", 236, Rarity.UNCOMMON, mage.cards.l.LevitatingStatue.class)); cards.add(new SetCardInfo("Llanowar Wastes", 264, Rarity.RARE, mage.cards.l.LlanowarWastes.class)); cards.add(new SetCardInfo("Loran of the Third Path", 12, Rarity.RARE, mage.cards.l.LoranOfTheThirdPath.class)); + cards.add(new SetCardInfo("Loran's Escape", 14, Rarity.COMMON, mage.cards.l.LoransEscape.class)); cards.add(new SetCardInfo("Loran, Disciple of History", 13, Rarity.UNCOMMON, mage.cards.l.LoranDiscipleOfHistory.class)); cards.add(new SetCardInfo("Machine Over Matter", 57, Rarity.COMMON, mage.cards.m.MachineOverMatter.class)); cards.add(new SetCardInfo("Mass Production", 15, Rarity.UNCOMMON, mage.cards.m.MassProduction.class));