forked from External/mage
[MOM] fixed Artistic Refusal (wrong modes), added additional checks for modes
This commit is contained in:
parent
dddb7363b2
commit
64434fbcbc
3 changed files with 18 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue