From e6b85901b882e4f36b43fbef2bc0b17a5c7cbf8e Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 31 Jan 2015 19:25:56 +0100 Subject: [PATCH] * Rite of Undoing - Fixed that the first target could also be a non controlled permanent. --- .../src/mage/sets/fatereforged/RiteOfUndoing.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Mage.Sets/src/mage/sets/fatereforged/RiteOfUndoing.java b/Mage.Sets/src/mage/sets/fatereforged/RiteOfUndoing.java index fd57334df7c..c75625b2ca9 100644 --- a/Mage.Sets/src/mage/sets/fatereforged/RiteOfUndoing.java +++ b/Mage.Sets/src/mage/sets/fatereforged/RiteOfUndoing.java @@ -49,10 +49,12 @@ import mage.target.common.TargetNonlandPermanent; */ public class RiteOfUndoing extends CardImpl { - private static final FilterNonlandPermanent filter = new FilterNonlandPermanent("nonland permanent you don't control"); + private static final FilterNonlandPermanent filterControlled = new FilterNonlandPermanent("nonland permanent you control"); + private static final FilterNonlandPermanent filterNotControlled = new FilterNonlandPermanent("nonland permanent you don't control"); static { - filter.add(new ControllerPredicate(TargetController.NOT_YOU)); + filterControlled.add(new ControllerPredicate(TargetController.YOU)); + filterNotControlled.add(new ControllerPredicate(TargetController.NOT_YOU)); } public RiteOfUndoing(UUID ownerId) { @@ -61,10 +63,11 @@ public class RiteOfUndoing extends CardImpl { // Delve this.addAbility(new DelveAbility()); + // Return target nonland permanent you control and target nonland permanent you don't control to their owners' hands. this.getSpellAbility().addEffect(new RiteOfUndoingEffect()); - this.getSpellAbility().addTarget(new TargetNonlandPermanent()); - this.getSpellAbility().addTarget(new TargetNonlandPermanent(filter)); + this.getSpellAbility().addTarget(new TargetNonlandPermanent(filterControlled)); + this.getSpellAbility().addTarget(new TargetNonlandPermanent(filterNotControlled)); } public RiteOfUndoing(final RiteOfUndoing card) {