From a534ce020e9577e4c30596484e1c50ea2aa98b1f Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 2 Jul 2020 18:28:07 -0400 Subject: [PATCH] v0.8.1a: fixed corse dust wraiths spawning inside of doors in rare cases --- .../shatteredpixeldungeon/items/quest/CorpseDust.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/quest/CorpseDust.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/quest/CorpseDust.java index f77f295dc..55c7b0e4a 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/quest/CorpseDust.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/quest/CorpseDust.java @@ -49,10 +49,6 @@ public class CorpseDust extends Item { unique = true; } - @Override - public ArrayList actions(Hero hero) { - return new ArrayList<>(); //yup, no dropping this one - } @Override public boolean isUpgradable() { @@ -105,7 +101,7 @@ public class CorpseDust extends Item { do{ pos = Random.Int(Dungeon.level.length()); tries --; - } while (tries > 0 && (!Dungeon.level.heroFOV[pos] || !Dungeon.level.passable[pos] || Actor.findChar( pos ) != null)); + } while (tries > 0 && (!Dungeon.level.heroFOV[pos] || Dungeon.level.solid[pos] || Actor.findChar( pos ) != null)); if (tries > 0) { Wraith.spawnAt(pos); Sample.INSTANCE.play(Assets.Sounds.CURSED);