From 31665de46aaef82149839cff13cfe5db9243b259 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 26 Jan 2025 15:45:02 -0500 Subject: [PATCH] v3.0.0: fixed unstable spell never using scrolls that are both combat and non-combat --- .../shatteredpixeldungeon/items/spells/UnstableSpell.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/spells/UnstableSpell.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/spells/UnstableSpell.java index 5b25fc174..4661e52c8 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/spells/UnstableSpell.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/spells/UnstableSpell.java @@ -100,11 +100,11 @@ public class UnstableSpell extends Spell { //reroll the scroll until it is relevant for the situation (whether there are visible enemies) if (hero.visibleEnemies() == 0){ - while (combatScrolls.contains(s.getClass())){ + while (!nonCombatScrolls.contains(s.getClass())){ s = Reflection.newInstance(Random.chances(scrollChances)); } } else { - while (nonCombatScrolls.contains(s.getClass())){ + while (!combatScrolls.contains(s.getClass())){ s = Reflection.newInstance(Random.chances(scrollChances)); } }