v0.6.0: added a safety check to actor logic
This commit is contained in:
parent
96e8ecbf7c
commit
1b2a0eafd7
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user