From dc3a2ea9071f2cf591a6db32a81a4604c2e4b539 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 5 Feb 2017 15:04:37 -0500 Subject: [PATCH] v0.5.0: fixed imp spawning ontop of enemies --- .../shatteredpixeldungeon/actors/mobs/npcs/Imp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Imp.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Imp.java index 2fa7de0bc..bb9aed15e 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Imp.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Imp.java @@ -183,7 +183,7 @@ public class Imp extends NPC { Imp npc = new Imp(); do { npc.pos = level.randomRespawnCell(); - } while (npc.pos == -1 || level.heaps.get( npc.pos ) != null); + } while (npc.pos == -1 || level.heaps.get( npc.pos ) != null || level.findMob( npc.pos ) != null); level.mobs.add( npc ); spawned = true;