From 6a7d37b2289b4cb167a4c53c00bc1be758defbc9 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 24 Oct 2017 17:39:30 -0400 Subject: [PATCH] v0.6.2: more safety checks in tengu logic --- .../shatteredpixel/shatteredpixeldungeon/actors/mobs/Tengu.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Tengu.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Tengu.java index c4324785e..5e938149f 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Tengu.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Tengu.java @@ -181,6 +181,7 @@ public class Tengu extends Mob { } if (enemy == null) enemy = chooseEnemy(); + if (enemy == null) return; int newPos; //if we're in phase 1, want to warp around within the room