From 3e3c43f0100b600d0566dbaf5fe633c0cc6f1a55 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 9 Jun 2020 08:34:42 -0400 Subject: [PATCH] Implemented Soul Sear --- Mage.Sets/src/mage/cards/s/SoulSear.java | 38 ++++++++++++++++++++++++ Mage.Sets/src/mage/sets/CoreSet2021.java | 1 + 2 files changed, 39 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/SoulSear.java diff --git a/Mage.Sets/src/mage/cards/s/SoulSear.java b/Mage.Sets/src/mage/cards/s/SoulSear.java new file mode 100644 index 0000000000..af843a5000 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SoulSear.java @@ -0,0 +1,38 @@ +package mage.cards.s; + +import mage.abilities.effects.common.DamageTargetEffect; +import mage.abilities.effects.common.continuous.LoseAbilityTargetEffect; +import mage.abilities.keyword.IndestructibleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.target.common.TargetCreatureOrPlaneswalker; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class SoulSear extends CardImpl { + + public SoulSear(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{R}"); + + // Soul Sear deals 5 damage to target creature or planeswalker. That permanent loses indestructible until end of turn. + this.getSpellAbility().addEffect(new DamageTargetEffect(5)); + this.getSpellAbility().addEffect(new LoseAbilityTargetEffect( + IndestructibleAbility.getInstance(), Duration.EndOfTurn + ).setText("That permanent loses indestructible until end of turn")); + this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker()); + } + + private SoulSear(final SoulSear card) { + super(card); + } + + @Override + public SoulSear copy() { + return new SoulSear(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2021.java b/Mage.Sets/src/mage/sets/CoreSet2021.java index caea954e4a..610311c3c9 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2021.java +++ b/Mage.Sets/src/mage/sets/CoreSet2021.java @@ -96,6 +96,7 @@ public final class CoreSet2021 extends ExpansionSet { cards.add(new SetCardInfo("Shipwreck Dowser", 71, Rarity.UNCOMMON, mage.cards.s.ShipwreckDowser.class)); cards.add(new SetCardInfo("Sigiled Contender", 323, Rarity.UNCOMMON, mage.cards.s.SigiledContender.class)); cards.add(new SetCardInfo("Solemn Simulacrum", 239, Rarity.RARE, mage.cards.s.SolemnSimulacrum.class)); + cards.add(new SetCardInfo("Soul Sear", 160, Rarity.UNCOMMON, mage.cards.s.SoulSear.class)); cards.add(new SetCardInfo("Sparkhunter Masticore", 240, Rarity.RARE, mage.cards.s.SparkhunterMasticore.class)); cards.add(new SetCardInfo("Spined Megalodon", 72, Rarity.COMMON, mage.cards.s.SpinedMegalodon.class)); cards.add(new SetCardInfo("Spirit of Malevolence", 331, Rarity.COMMON, mage.cards.s.SpiritOfMalevolence.class));