v2.0.0: fixed NPC interaction not checking if NPCs have died

This commit is contained in:
Evan Debenham
2022-11-03 14:00:45 -04:00
parent 779905baf4
commit b8947e78fc

View File

@@ -792,7 +792,7 @@ public class Hero extends Char {
Char ch = action.ch;
if (ch.canInteract(this)) {
if (ch.isAlive() && ch.canInteract(this)) {
ready();
sprite.turnTo( pos, ch.pos );