From e582de31323adb5d492cbed78c029d1c5cc65b8a Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 21 Sep 2021 21:31:30 -0400 Subject: [PATCH] v1.1.0: fixed un-IDed scrolls being selectable for spellbook This could let you soft-ID scrolls in rare cases --- .../items/artifacts/UnstableSpellbook.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/UnstableSpellbook.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/UnstableSpellbook.java index 6d2215a51..0e7803f40 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/UnstableSpellbook.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/UnstableSpellbook.java @@ -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