From 8be67e9e20ae397829a2921d70c7cb0f784b1c76 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 30 Jul 2021 23:38:59 -0400 Subject: [PATCH] v0.9.4: fixed scrolls of divination not always triggering scroll logic --- .../items/scrolls/exotic/ScrollOfDivination.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/exotic/ScrollOfDivination.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/exotic/ScrollOfDivination.java index 026a73828..7f08d77a9 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/exotic/ScrollOfDivination.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/exotic/ScrollOfDivination.java @@ -62,11 +62,6 @@ public class ScrollOfDivination extends ExoticScroll { int total = potions.size() + scrolls.size() + rings.size(); - if (total == 0){ - GLog.n( Messages.get(this, "nothing_left") ); - return; - } - ArrayList IDed = new ArrayList<>(); int left = 4; @@ -115,8 +110,12 @@ public class ScrollOfDivination extends ExoticScroll { left --; total --; } - - GameScene.show(new WndDivination( IDed )); + + if (total == 0){ + GLog.n( Messages.get(this, "nothing_left") ); + } else { + GameScene.show(new WndDivination(IDed)); + } readAnimation(); identify();