v0.9.2: fixed necromancer summon pushing not accounting for large chars

This commit is contained in:
Evan Debenham 2021-02-22 20:26:48 -05:00
parent 3e4c137e20
commit 4fc1d0597f

View File

@ -221,6 +221,7 @@ public class Necromancer extends Mob {
for (int c : PathFinder.NEIGHBOURS8) {
if (Actor.findChar(summoningPos + c) == null
&& Dungeon.level.passable[summoningPos + c]
&& (Dungeon.level.openSpace[summoningPos + c] || !hasProp(Actor.findChar(summoningPos), Property.LARGE))
&& Dungeon.level.trueDistance(pos, summoningPos + c) > Dungeon.level.trueDistance(pos, pushPos)) {
pushPos = summoningPos + c;
}