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; }