v1.1.0: fixed un-IDed scrolls being selectable for spellbook

This could let you soft-ID scrolls in rare cases
This commit is contained in:
Evan Debenham 2021-09-21 21:31:30 -04:00
parent 0e215cb8b0
commit e582de3132

View File

@ -320,7 +320,7 @@ public class UnstableSpellbook extends Artifact {
@Override
public boolean itemSelectable(Item item) {
return item instanceof Scroll && scrolls.contains(item.getClass());
return item instanceof Scroll && item.isIdentified() && scrolls.contains(item.getClass());
}
@Override