* Runic Repetition - Fixed that exiled cards not in the default exile window could not be selected as target (fixes #720).

This commit is contained in:
LevelX2 2015-02-15 23:53:35 +01:00
parent dfd46bd94e
commit 2969ea2fac
3 changed files with 15 additions and 5 deletions

View file

@ -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();
}