mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Merge pull request #7146 from weirddan455/target-text-fix
Targeting interface now says "Select up to one..." when the target is optional (bug #7046).
This commit is contained in:
commit
2f5a8659b6
1 changed files with 5 additions and 1 deletions
|
@ -117,7 +117,11 @@ public abstract class TargetImpl implements Target {
|
|||
|| targetName.startsWith("an ")
|
||||
|| targetName.startsWith("any ")) {
|
||||
return "Select " + targetName + suffix;
|
||||
} else if (targetName.startsWith("a") || targetName.startsWith("e") || targetName.startsWith("i") || targetName.startsWith("o") || targetName.startsWith("u")) {
|
||||
}
|
||||
if (getMinNumberOfTargets() == 0 && getMaxNumberOfTargets() == 1) {
|
||||
return "Select up to one " + targetName + suffix;
|
||||
}
|
||||
if (targetName.startsWith("a") || targetName.startsWith("e") || targetName.startsWith("i") || targetName.startsWith("o") || targetName.startsWith("u")) {
|
||||
return "Select an " + targetName + suffix;
|
||||
}
|
||||
return "Select a " + targetName + suffix;
|
||||
|
|
Loading…
Reference in a new issue