From b8947e78fc062d239bfeaf7505780f79dec4cc6c Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 3 Nov 2022 14:00:45 -0400 Subject: [PATCH] v2.0.0: fixed NPC interaction not checking if NPCs have died --- .../shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java index 1ea5bceb8..3153f95f9 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java @@ -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 );