mirror of
https://github.com/correl/mage.git
synced 2025-01-12 03:00:13 +00:00
* Target - Setting required to false if minNumberOfTargets = 0. Fixed bug with Kruphix’s Insight.
This commit is contained in:
parent
a5cba8eccb
commit
5ae1f6306b
2 changed files with 4 additions and 3 deletions
|
@ -61,9 +61,7 @@ public class TargetCard extends TargetObject {
|
|||
}
|
||||
|
||||
public TargetCard(int minNumTargets, int maxNumTargets, Zone zone, FilterCard filter) {
|
||||
this.minNumberOfTargets = minNumTargets;
|
||||
this.maxNumberOfTargets = maxNumTargets;
|
||||
this.zone = zone;
|
||||
super(minNumTargets, maxNumTargets, zone, false);
|
||||
this.filter = filter;
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
|
|
@ -58,6 +58,9 @@ public abstract class TargetObject extends TargetImpl {
|
|||
public TargetObject(int minNumTargets, int maxNumTargets, Zone zone, boolean notTarget) {
|
||||
this.minNumberOfTargets = minNumTargets;
|
||||
this.maxNumberOfTargets = maxNumTargets;
|
||||
if (minNumTargets == 0) {
|
||||
setRequired(false);
|
||||
}
|
||||
this.zone = zone;
|
||||
this.targetName = "card";
|
||||
this.notTarget = notTarget;
|
||||
|
|
Loading…
Reference in a new issue