[MOM] fixed Artistic Refusal (wrong modes), added additional checks for modes

This commit is contained in:
Oleg Agafonov 2023-04-05 12:13:36 +04:00
parent dddb7363b2
commit 64434fbcbc
3 changed files with 18 additions and 2 deletions

View file

@ -490,7 +490,8 @@ public class Modes extends LinkedHashMap<UUID, Mode> {
} else if (this.getMinModes() == this.getMaxModes(null, null)) {
sb.append(CardUtil.numberToText(this.getMinModes()));
} else {
throw new UnsupportedOperationException("no text available for this selection of min and max modes");
throw new UnsupportedOperationException(String.format("no text available for this selection of min and max modes (%d and %d)",
this.getMinModes(), this.getMaxModes(null, null)));
}
} else {
sb.append(chooseText);