From 9a8eed04461b814165088208eed07e304b4344e9 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 21 Jan 2021 10:44:56 -0500 Subject: [PATCH] [KHM] Implemented Struggle for Skemfar --- Mage.Sets/src/mage/cards/h/HuntTheWeak.java | 14 ++---- .../src/mage/cards/s/StruggleForSkemfar.java | 46 +++++++++++++++++++ Mage.Sets/src/mage/sets/Kaldheim.java | 1 + 3 files changed, 52 insertions(+), 9 deletions(-) create mode 100644 Mage.Sets/src/mage/cards/s/StruggleForSkemfar.java diff --git a/Mage.Sets/src/mage/cards/h/HuntTheWeak.java b/Mage.Sets/src/mage/cards/h/HuntTheWeak.java index 626e3c49f4..bde6c3afb0 100644 --- a/Mage.Sets/src/mage/cards/h/HuntTheWeak.java +++ b/Mage.Sets/src/mage/cards/h/HuntTheWeak.java @@ -1,6 +1,5 @@ package mage.cards.h; -import mage.abilities.effects.Effect; import mage.abilities.effects.common.FightTargetsEffect; import mage.abilities.effects.common.counter.AddCountersTargetEffect; import mage.cards.CardImpl; @@ -8,7 +7,6 @@ import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.counters.CounterType; import mage.filter.StaticFilters; -import mage.target.Target; import mage.target.common.TargetControlledCreaturePermanent; import mage.target.common.TargetCreaturePermanent; @@ -23,14 +21,12 @@ public final class HuntTheWeak extends CardImpl { super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{G}"); // Put a +1/+1 counter on target creature you control. Then that creature fights target creature you don't control. - Effect effect = new AddCountersTargetEffect(CounterType.P1P1.createInstance()); - this.getSpellAbility().addEffect(effect); - effect = new FightTargetsEffect(); - effect.setText("Then that creature fights target creature you don't control"); - this.getSpellAbility().addEffect(effect); + this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.P1P1.createInstance())); + this.getSpellAbility().addEffect(new FightTargetsEffect().setText( + "Then that creature fights up to one target creature you don't control" + )); this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); - Target target = new TargetCreaturePermanent(StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL); - this.getSpellAbility().addTarget(target); + this.getSpellAbility().addTarget(new TargetCreaturePermanent(StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL)); } private HuntTheWeak(final HuntTheWeak card) { diff --git a/Mage.Sets/src/mage/cards/s/StruggleForSkemfar.java b/Mage.Sets/src/mage/cards/s/StruggleForSkemfar.java new file mode 100644 index 0000000000..9d6e304316 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/StruggleForSkemfar.java @@ -0,0 +1,46 @@ +package mage.cards.s; + +import mage.abilities.effects.common.FightTargetsEffect; +import mage.abilities.effects.common.counter.AddCountersTargetEffect; +import mage.abilities.keyword.ForetellAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.counters.CounterType; +import mage.filter.StaticFilters; +import mage.target.common.TargetControlledCreaturePermanent; +import mage.target.common.TargetCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class StruggleForSkemfar extends CardImpl { + + public StruggleForSkemfar(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{G}"); + + // Put a +1/+1 counter on target creature you control. Then that creature fights up to one target creature you don't control. + this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.P1P1.createInstance())); + this.getSpellAbility().addEffect(new FightTargetsEffect().setText( + "Then that creature fights up to one target creature you don't control" + )); + this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); + this.getSpellAbility().addTarget(new TargetCreaturePermanent( + 0, 1, StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL, false + )); + + // Foretell {G} + this.addAbility(new ForetellAbility(this, "{G}")); + } + + private StruggleForSkemfar(final StruggleForSkemfar card) { + super(card); + } + + @Override + public StruggleForSkemfar copy() { + return new StruggleForSkemfar(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Kaldheim.java b/Mage.Sets/src/mage/sets/Kaldheim.java index cb66266438..b6d9b23b3e 100644 --- a/Mage.Sets/src/mage/sets/Kaldheim.java +++ b/Mage.Sets/src/mage/sets/Kaldheim.java @@ -298,6 +298,7 @@ public final class Kaldheim extends ExpansionSet { cards.add(new SetCardInfo("Starnheim Courser", 32, Rarity.COMMON, mage.cards.s.StarnheimCourser.class)); cards.add(new SetCardInfo("Story Seeker", 34, Rarity.COMMON, mage.cards.s.StorySeeker.class)); cards.add(new SetCardInfo("Strategic Planning", 77, Rarity.COMMON, mage.cards.s.StrategicPlanning.class)); + cards.add(new SetCardInfo("Struggle for Skemfar", 196, Rarity.COMMON, mage.cards.s.StruggleForSkemfar.class)); cards.add(new SetCardInfo("Sulfurous Mire", 270, Rarity.COMMON, mage.cards.s.SulfurousMire.class)); cards.add(new SetCardInfo("Surtland Elementalist", 375, Rarity.RARE, mage.cards.s.SurtlandElementalist.class)); cards.add(new SetCardInfo("Surtland Flinger", 377, Rarity.RARE, mage.cards.s.SurtlandFlinger.class));