From 16cadde43f91c4144b290fb7dc8c5037260d7f63 Mon Sep 17 00:00:00 2001 From: Duncan Townsend Date: Sun, 21 Jun 2015 22:52:04 -0400 Subject: [PATCH] Fixed Ojutai, Soul of Winter's triggered ability being unable to target noncreature nonland permanents. --- .../sets/fatereforged/OjutaiSoulOfWinter.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Mage.Sets/src/mage/sets/fatereforged/OjutaiSoulOfWinter.java b/Mage.Sets/src/mage/sets/fatereforged/OjutaiSoulOfWinter.java index ee0b842c36..4649e5ed85 100644 --- a/Mage.Sets/src/mage/sets/fatereforged/OjutaiSoulOfWinter.java +++ b/Mage.Sets/src/mage/sets/fatereforged/OjutaiSoulOfWinter.java @@ -40,7 +40,9 @@ import mage.constants.CardType; import mage.constants.Rarity; import mage.constants.SetTargetPointer; import mage.constants.TargetController; +import mage.filter.FilterPermanent; import mage.filter.common.FilterCreaturePermanent; +import mage.filter.common.FilterNonlandPermanent; import mage.filter.predicate.mageobject.SubtypePredicate; import mage.filter.predicate.permanent.ControllerPredicate; import mage.target.TargetPermanent; @@ -51,13 +53,13 @@ import mage.target.TargetPermanent; */ public class OjutaiSoulOfWinter extends CardImpl { - private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Dragon you control"); - private static final FilterCreaturePermanent filterPermanent = new FilterCreaturePermanent("permanent an opponent controls"); + private static final FilterCreaturePermanent filterDragon = new FilterCreaturePermanent("Dragon you control"); + private static final FilterPermanent filterNonlandPermanent = new FilterNonlandPermanent("nonland permanent an opponent controls"); static { - filter.add(new SubtypePredicate("Dragon")); - filter.add(new ControllerPredicate(TargetController.YOU)); - filterPermanent.add(new ControllerPredicate(TargetController.OPPONENT)); + filterDragon.add(new SubtypePredicate("Dragon")); + filterDragon.add(new ControllerPredicate(TargetController.YOU)); + filterNonlandPermanent.add(new ControllerPredicate(TargetController.OPPONENT)); } public OjutaiSoulOfWinter(UUID ownerId) { @@ -75,9 +77,9 @@ public class OjutaiSoulOfWinter extends CardImpl { // Whenever a Dragon you control attacks, tap target nonland permanent an opponent controls. That permanent doesn't untap during its controller's next untap step. Ability ability = new AttacksAllTriggeredAbility( new TapTargetEffect(), - false, filter, SetTargetPointer.NONE, false); + false, filterDragon, SetTargetPointer.NONE, false); ability.addEffect(new DontUntapInControllersNextUntapStepTargetEffect("That permanent")); - ability.addTarget(new TargetPermanent(filterPermanent)); + ability.addTarget(new TargetPermanent(filterNonlandPermanent)); this.addAbility(ability); }