Merge pull request #6255 from tylerFretz/stinging-lionfish-bugFix

added nonland filter to ability
This commit is contained in:
Oleg Agafonov 2020-02-04 08:02:12 +01:00 committed by GitHub
commit 4075ebaea0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}