- Don't prompt user for mandatory targeting of minTargets = 0 with no legal targets.

This commit is contained in:
Sol
2015-02-15 15:51:51 +00:00
parent caf5817d0b
commit c29aa269b9

View File

@@ -93,6 +93,10 @@ public class TargetSelection {
// Cancel ability if there aren't any valid Candidates
return false;
}
if (tgt.getMandatory() && !hasCandidates && hasEnoughTargets) {
// Mandatory target selection, that has no candidates but enough targets (Min == 0, but no choices)
return true;
}
final List<ZoneType> zone = tgt.getZone();
final boolean mandatory = tgt.getMandatory() && hasCandidates;