v0.6.0: added a safety check to actor logic

This commit is contained in:
Evan Debenham 2017-06-01 01:53:27 -04:00
parent 96e8ecbf7c
commit 1b2a0eafd7

View File

@ -216,6 +216,7 @@ public abstract class Actor implements Bundlable {
doNext = !Thread.interrupted()
&& acting != null
&& Dungeon.hero != null
&& acting.act();
if (doNext && !Dungeon.hero.isAlive()) {