From 04a56c5ceaf202196783a5b55b9e01724388db0c Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 28 Sep 2023 15:58:09 -0400 Subject: [PATCH] v2.2.0: fixed findstep also including avoid cells in all cases --- .../java/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java index 9fd298a5d..e4b482f47 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java @@ -1009,7 +1009,7 @@ public class Dungeon { public static int findStep(Char ch, int to, boolean[] pass, boolean[] visible, boolean chars ) { if (Dungeon.level.adjacent( ch.pos, to )) { - return Actor.findChar( to ) == null && (pass[to] || Dungeon.level.avoid[to]) ? to : -1; + return Actor.findChar( to ) == null && pass[to] ? to : -1; } return PathFinder.getStep( ch.pos, to, findPassable(ch, pass, visible, chars) );