From 4ff769d0ef0101ac3017171da53fc0a825a74e07 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 7 Oct 2024 15:08:52 -0400 Subject: [PATCH] v2.5.4: fixed necromancers not being able to summon onto doors --- .../shatteredpixeldungeon/actors/mobs/Necromancer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Necromancer.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Necromancer.java index 60a710c3a..357c29788 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Necromancer.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Necromancer.java @@ -289,8 +289,10 @@ public class Necromancer extends Mob { summoningPos = -1; - //we can summon around blocking terrain, but not through it - PathFinder.buildDistanceMap(pos, BArray.not(Dungeon.level.solid, null), Dungeon.level.distance(pos, enemy.pos)+3); + //we can summon around blocking terrain, but not through it, except unlocked doors + boolean[] passable = BArray.not(Dungeon.level.solid, null); + BArray.or(Dungeon.level.passable, passable, passable); + PathFinder.buildDistanceMap(pos, passable, Dungeon.level.distance(pos, enemy.pos)+3); for (int c : PathFinder.NEIGHBOURS8){ if (Actor.findChar(enemy.pos+c) == null