v0.9.2: fixed necromancer summon pushing not accounting for large chars
This commit is contained in:
parent
3e4c137e20
commit
4fc1d0597f
|
@ -221,6 +221,7 @@ public class Necromancer extends Mob {
|
||||||
for (int c : PathFinder.NEIGHBOURS8) {
|
for (int c : PathFinder.NEIGHBOURS8) {
|
||||||
if (Actor.findChar(summoningPos + c) == null
|
if (Actor.findChar(summoningPos + c) == null
|
||||||
&& Dungeon.level.passable[summoningPos + c]
|
&& 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)) {
|
&& Dungeon.level.trueDistance(pos, summoningPos + c) > Dungeon.level.trueDistance(pos, pushPos)) {
|
||||||
pushPos = summoningPos + c;
|
pushPos = summoningPos + c;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user