v0.9.1: fixed allies rarely appearing ontop of hero after tengu fight

This commit is contained in:
Evan Debenham 2020-10-31 15:07:43 -04:00
parent f89aca4dc0
commit 28bea55368

View File

@ -462,7 +462,7 @@ public class NewPrisonBossLevel extends Level {
for (Mob m : allies){
do{
m.pos = randomTenguCellPos();
} while (findMob(m.pos) != null);
} while (findMob(m.pos) != null || m.pos == Dungeon.hero.pos);
if (m.sprite != null) m.sprite.place(m.pos);
mobs.add(m);
}