Fixed that choose creature type dialog don't shows custom sets (#5569)

This commit is contained in:
Oleg Agafonov 2019-02-04 00:51:35 +04:00
parent 2cd9e25229
commit e9c6c4fefa

View file

@ -22,11 +22,11 @@ public class ChoiceCreatureType extends ChoiceImpl {
this(true, chooseMessage, source);
}
public ChoiceCreatureType(boolean required, String chooseMessage, MageObject source){
public ChoiceCreatureType(boolean required, String chooseMessage, MageObject source) {
super(required);
this.setChoices(SubType.getCreatureTypes(false).stream().map(SubType::toString).collect(Collectors.toCollection(LinkedHashSet::new)));
this.setChoices(SubType.getCreatureTypes().stream().map(SubType::toString).collect(Collectors.toCollection(LinkedHashSet::new)));
this.setMessage(chooseMessage);
if(source != null) {
if (source != null) {
this.setSubMessage(source.getIdName());
}
this.setSearchEnabled(true);