From e9189f1d9d4e65f20cdbeb282695ebe48941d28b Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sun, 16 May 2021 08:21:02 -0400 Subject: [PATCH] [STX] fixed Double Major targeting spells not controlled by its controller (fixes #7824) --- Mage.Sets/src/mage/cards/d/DoubleMajor.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/cards/d/DoubleMajor.java b/Mage.Sets/src/mage/cards/d/DoubleMajor.java index 000fc43584..ad7158981e 100644 --- a/Mage.Sets/src/mage/cards/d/DoubleMajor.java +++ b/Mage.Sets/src/mage/cards/d/DoubleMajor.java @@ -7,7 +7,9 @@ import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.Outcome; import mage.constants.SuperType; -import mage.filter.StaticFilters; +import mage.constants.TargetController; +import mage.filter.FilterSpell; +import mage.filter.common.FilterCreatureSpell; import mage.filter.predicate.mageobject.MageObjectReferencePredicate; import mage.game.Game; import mage.game.stack.Spell; @@ -22,12 +24,18 @@ import java.util.UUID; */ public final class DoubleMajor extends CardImpl { + private static final FilterSpell filter = new FilterCreatureSpell("creature spell you control"); + + static { + filter.add(TargetController.YOU.getControllerPredicate()); + } + public DoubleMajor(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{G}{U}"); // Copy target creature spell you control, except it isn't legendary if the spell is legendary. this.getSpellAbility().addEffect(new DoubleMajorEffect()); - this.getSpellAbility().addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_CREATURE)); + this.getSpellAbility().addTarget(new TargetSpell(filter)); } private DoubleMajor(final DoubleMajor card) {