From 46f33637a09ed41234e74c3918c94588bd706dc3 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 20 Aug 2022 23:50:49 -0400 Subject: [PATCH] v1.4.0: fixed necromancers potentially moving immovable chars --- .../shatteredpixeldungeon/actors/mobs/Necromancer.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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 ae63a31c3..674554b69 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 @@ -178,6 +178,15 @@ public class Necromancer extends Mob { public void summonMinion(){ if (Actor.findChar(summoningPos) != null) { + + //cancel if character cannot be moved + if (Char.hasProp(Actor.findChar(summoningPos), Property.IMMOVABLE)){ + summoning = false; + ((NecromancerSprite)sprite).finishSummoning(); + spend(TICK); + return; + } + int pushPos = pos; for (int c : PathFinder.NEIGHBOURS8) { if (Actor.findChar(summoningPos + c) == null