mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 05:52:06 -08:00
Targeting interface now says "Select up to one..." when the target is optional (bug #7046).
This commit is contained in:
parent
08d92831f1
commit
6b508ecacc
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…
Add table
Add a link
Reference in a new issue