From 4d4959c40d6a13482a8e70df6439e134099cf2f0 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 15 Nov 2014 20:49:33 -0500 Subject: [PATCH] v0.2.2b: fixed a bug with challenges and dropped items --- .../shatteredpixel/shatteredpixeldungeon/levels/Level.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java index 68de2792b..da269748a 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java @@ -572,7 +572,9 @@ public abstract class Level implements Bundlable { (Dungeon.isChallenged( Challenges.NO_HEALING ) && item instanceof PotionOfHealing) || (Dungeon.isChallenged( Challenges.NO_HERBALISM ) && (item instanceof Plant.Seed || item instanceof Dewdrop))) { - return new Heap(); + Heap heap = new Heap(); + GameScene.add( heap ); + return heap; }