v0.9.4: fixed scrolls of divination not always triggering scroll logic

This commit is contained in:
Evan Debenham 2021-07-30 23:38:59 -04:00
parent cdba58524f
commit 8be67e9e20

View File

@ -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<Item> 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();