v3.1.0: fixed gnoll exiles being set to wandering when spawned over time

This commit is contained in:
Evan Debenham
2025-05-15 10:47:24 -04:00
parent 06130de816
commit 24db6d0bb9

View File

@@ -740,7 +740,9 @@ public abstract class Level implements Bundlable {
PathFinder.buildDistanceMap(Dungeon.hero.pos, BArray.or(passable, avoid, null)); PathFinder.buildDistanceMap(Dungeon.hero.pos, BArray.or(passable, avoid, null));
Mob mob = createMob(); Mob mob = createMob();
mob.state = mob.WANDERING; if (mob.state != mob.PASSIVE) {
mob.state = mob.WANDERING;
}
int tries = 30; int tries = 30;
do { do {
mob.pos = randomRespawnCell(mob); mob.pos = randomRespawnCell(mob);