v3.1.0: fixed gnoll exiles spawned by traps being set to wandering

This commit is contained in:
Evan Debenham
2025-05-27 12:10:21 -04:00
parent 723c112f8b
commit ca4c3f7a7d
2 changed files with 6 additions and 2 deletions

View File

@@ -143,7 +143,9 @@ public class DistortionTrap extends Trap{
} }
mob.maxLvl = Hero.MAX_LEVEL-1; mob.maxLvl = Hero.MAX_LEVEL-1;
mob.state = mob.WANDERING; if (mob.state != mob.PASSIVE) {
mob.state = mob.WANDERING;
}
mob.pos = point; mob.pos = point;
GameScene.add(mob, DELAY); GameScene.add(mob, DELAY);
mobs.add(mob); mobs.add(mob);

View File

@@ -79,7 +79,9 @@ public class SummoningTrap extends Trap {
mob = Dungeon.level.createMob(); mob = Dungeon.level.createMob();
} }
if (mob != null) { if (mob != null) {
mob.state = mob.WANDERING; if (mob.state != mob.PASSIVE) {
mob.state = mob.WANDERING;
}
mob.pos = point; mob.pos = point;
GameScene.add(mob, DELAY); GameScene.add(mob, DELAY);
mobs.add(mob); mobs.add(mob);