From 0e2fbc05fbc4b04d8cb6dfd00b7871b2fc2f542b Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 22 Jan 2016 23:34:42 -0500 Subject: [PATCH] v0.3.4: fixed a bug with scroll of magical infusion and the no scrolls challenge --- src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java index 4c7074993..85f063c49 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java @@ -719,7 +719,7 @@ public abstract class Level implements Bundlable { (Dungeon.isChallenged( Challenges.NO_ARMOR ) && item instanceof Armor) || (Dungeon.isChallenged( Challenges.NO_HEALING ) && item instanceof PotionOfHealing) || (Dungeon.isChallenged( Challenges.NO_HERBALISM ) && (item instanceof Plant.Seed || item instanceof Dewdrop || item instanceof SeedPouch)) || - (Dungeon.isChallenged( Challenges.NO_SCROLLS ) && ((item instanceof Scroll && !(item instanceof ScrollOfUpgrade)) || item instanceof ScrollHolder)) || + (Dungeon.isChallenged( Challenges.NO_SCROLLS ) && ((item instanceof Scroll && !(item instanceof ScrollOfUpgrade || item instanceof ScrollOfMagicalInfusion)) || item instanceof ScrollHolder)) || item == null) { //create a dummy heap, give it a dummy sprite, don't add it to the game, and return it.