mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
* 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:
parent
dfd46bd94e
commit
2969ea2fac
3 changed files with 15 additions and 5 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue