From 28bea553685295a0974d01a5092553337b11dd63 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 31 Oct 2020 15:07:43 -0400 Subject: [PATCH] v0.9.1: fixed allies rarely appearing ontop of hero after tengu fight --- .../shatteredpixeldungeon/levels/NewPrisonBossLevel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/NewPrisonBossLevel.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/NewPrisonBossLevel.java index 62fa37c84..9e0cd16cc 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/NewPrisonBossLevel.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/NewPrisonBossLevel.java @@ -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); }