From 4a9b50bb7103a8192d51ccf68609e028ab458046 Mon Sep 17 00:00:00 2001 From: Tyler Fretz Date: Tue, 4 Feb 2020 00:53:18 -0500 Subject: [PATCH] added nonland filter to ability --- Mage.Sets/src/mage/cards/s/StingingLionfish.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/s/StingingLionfish.java b/Mage.Sets/src/mage/cards/s/StingingLionfish.java index 448356bc00..c5a24ba08b 100644 --- a/Mage.Sets/src/mage/cards/s/StingingLionfish.java +++ b/Mage.Sets/src/mage/cards/s/StingingLionfish.java @@ -8,6 +8,8 @@ import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.SubType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterNonlandPermanent; import mage.target.TargetPermanent; import java.util.UUID; @@ -17,6 +19,8 @@ import java.util.UUID; */ public final class StingingLionfish extends CardImpl { + private static final FilterPermanent filter = new FilterNonlandPermanent("nonland permanent"); + public StingingLionfish(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT, CardType.CREATURE}, "{1}{U}"); @@ -28,7 +32,7 @@ public final class StingingLionfish extends CardImpl { Ability ability = new FirstSpellOpponentsTurnTriggeredAbility( new MayTapOrUntapTargetEffect(), false ); - ability.addTarget(new TargetPermanent()); + ability.addTarget(new TargetPermanent(filter)); this.addAbility(ability); }