From 9824c9bfd2c3e33604340e69b85ee24aa0db1f3a Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 2 Jul 2020 09:53:29 -0400 Subject: [PATCH] fixed Rookie Mistake being able to target the same creature twice --- Mage.Sets/src/mage/cards/r/RookieMistake.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/r/RookieMistake.java b/Mage.Sets/src/mage/cards/r/RookieMistake.java index 9946d80a52..8f9f16512e 100644 --- a/Mage.Sets/src/mage/cards/r/RookieMistake.java +++ b/Mage.Sets/src/mage/cards/r/RookieMistake.java @@ -9,6 +9,9 @@ import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.Duration; import mage.constants.Outcome; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.mageobject.AnotherTargetPredicate; import mage.game.Game; import mage.game.permanent.Permanent; import mage.target.TargetPermanent; @@ -22,6 +25,12 @@ import java.util.UUID; */ public final class RookieMistake extends CardImpl { + private static final FilterPermanent filter = new FilterCreaturePermanent(); + + static { + filter.add(new AnotherTargetPredicate(2)); + } + public RookieMistake(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{U}"); @@ -30,7 +39,7 @@ public final class RookieMistake extends CardImpl { TargetPermanent target = new TargetCreaturePermanent(); target.setTargetTag(1); this.getSpellAbility().addTarget(target.withChooseHint("+0/+2")); - target = new TargetCreaturePermanent(); + target = new TargetPermanent(filter); target.setTargetTag(2); this.getSpellAbility().addTarget(target.withChooseHint("-2/-0")); }