v0.9.1: fixed allies rarely appearing ontop of hero after tengu fight
This commit is contained in:
parent
f89aca4dc0
commit
28bea55368
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user