From 3dab4ba6ac6b16d316613f16d1684f6969e3e891 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 21 Jul 2021 11:53:58 -0400 Subject: [PATCH] v0.9.4: fixed giant succubi teleporting into enclosed spaces --- .../shatteredpixeldungeon/actors/mobs/Succubus.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Succubus.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Succubus.java index 8ac73761c..9d63fa52b 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Succubus.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Succubus.java @@ -125,11 +125,13 @@ public class Succubus extends Mob { if (Actor.findChar( cell ) != null && cell != this.pos) cell = route.path.get(route.dist-1); - if (Dungeon.level.avoid[ cell ]){ + if (Dungeon.level.avoid[ cell ] && (!properties().contains(Property.LARGE) || Dungeon.level.openSpace[cell])){ ArrayList candidates = new ArrayList<>(); for (int n : PathFinder.NEIGHBOURS8) { cell = route.collisionPos + n; - if (Dungeon.level.passable[cell] && Actor.findChar( cell ) == null) { + if (Dungeon.level.passable[cell] + && Actor.findChar( cell ) == null + && (!properties().contains(Property.LARGE) || Dungeon.level.openSpace[n])) { candidates.add( cell ); } }