From 2969ea2facc3d60c5c4ced068daec863ffbe2d8c Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 15 Feb 2015 23:53:35 +0100 Subject: [PATCH] * Runic Repetition - Fixed that exiled cards not in the default exile window could not be selected as target (fixes #720). --- Mage.Client/serverlist.txt | 1 - .../src/mage/sets/innistrad/RunicRepetition.java | 4 +--- .../src/mage/target/common/TargetCardInExile.java | 15 ++++++++++++++- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Mage.Client/serverlist.txt b/Mage.Client/serverlist.txt index 021697d81e..cefd1b3f3d 100644 --- a/Mage.Client/serverlist.txt +++ b/Mage.Client/serverlist.txt @@ -3,5 +3,4 @@ XMage.info 1 (Europe/France) :176.31.186.181:17171 XMage.info 2 (Europe/France) :176.31.186.181:17000 IceMage (Europe/Netherlands) :ring0.cc:17171 Seedds Server (Asia) :115.29.203.80:17171 -Felipejoys (South America/Brazil):felipejoys.no-ip.org:17171 localhost -> connect to your local server (must be started):localhost:17171 diff --git a/Mage.Sets/src/mage/sets/innistrad/RunicRepetition.java b/Mage.Sets/src/mage/sets/innistrad/RunicRepetition.java index ed0fcd3bc9..165fc637da 100644 --- a/Mage.Sets/src/mage/sets/innistrad/RunicRepetition.java +++ b/Mage.Sets/src/mage/sets/innistrad/RunicRepetition.java @@ -56,10 +56,8 @@ public class RunicRepetition extends CardImpl { super(ownerId, 72, "Runic Repetition", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{2}{U}"); this.expansionSetCode = "ISD"; - this.color.setBlue(true); - // Return target exiled card with flashback you own to your hand. - TargetCardInExile target = new TargetCardInExile(filter, null); + TargetCardInExile target = new TargetCardInExile(filter); this.getSpellAbility().addTarget(target); this.getSpellAbility().addEffect(new ReturnToHandTargetEffect()); } diff --git a/Mage/src/mage/target/common/TargetCardInExile.java b/Mage/src/mage/target/common/TargetCardInExile.java index 1e225d6db2..7b1d479128 100644 --- a/Mage/src/mage/target/common/TargetCardInExile.java +++ b/Mage/src/mage/target/common/TargetCardInExile.java @@ -48,6 +48,15 @@ public class TargetCardInExile extends TargetCard { private UUID zoneId; private boolean allExileZones; + public TargetCardInExile(FilterCard filter) { + this(1, 1, filter, null); + } + + /** + * + * @param filter + * @param zoneId - if null card can be in ever exile zone + */ public TargetCardInExile(FilterCard filter, UUID zoneId) { this(1, 1, filter, zoneId); } @@ -59,7 +68,11 @@ public class TargetCardInExile extends TargetCard { public TargetCardInExile(int minNumTargets, int maxNumTargets, FilterCard filter, UUID zoneId, boolean allExileZones) { super(minNumTargets, maxNumTargets, Zone.EXILED, filter); this.zoneId = zoneId; - this.allExileZones = allExileZones; + if (zoneId == null) { + this.allExileZones = true; + } else { + this.allExileZones = allExileZones; + } this.targetName = filter.getMessage(); }