From c471924d583d2a8d6245fd6f2f2e8635d27753f1 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 18 Sep 2025 13:19:59 -0400 Subject: [PATCH] v3.2.5: fixed guards pulling large chargs into enclosed spaces --- .../shatteredpixeldungeon/actors/mobs/Guard.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Guard.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Guard.java index b0cf6cbc7..7588000ad 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Guard.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Guard.java @@ -80,7 +80,9 @@ public class Guard extends Mob { else { int newPos = -1; for (int i : chain.subPath(1, chain.dist)){ - if (!Dungeon.level.solid[i] && Actor.findChar(i) == null){ + //find the closest position to the guard that's open for the target + if (!Dungeon.level.solid[i] && Actor.findChar(i) == null + && (Dungeon.level.openSpace[i] || !Char.hasProp(enemy, Property.LARGE))){ newPos = i; break; }