From b878f8f95ca8dfdf1ae987098cad0c1edf0d15f2 Mon Sep 17 00:00:00 2001 From: Condorra Date: Wed, 22 Feb 2023 21:43:18 +1100 Subject: [PATCH] Sorry NPCs, no last words from beyond the grave. --- blastmud_game/src/static_content/npc.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blastmud_game/src/static_content/npc.rs b/blastmud_game/src/static_content/npc.rs index 23916f76..e860205d 100644 --- a/blastmud_game/src/static_content/npc.rs +++ b/blastmud_game/src/static_content/npc.rs @@ -268,6 +268,10 @@ impl TaskHandler for NPCSayTaskHandler { Some(r) => r }; + if npc_item.is_dead { + return Ok(None); + } + let (is_explicit, say_what) = match &say_info.talk_type { NPCSayType::FromFixedList(l) => { let mut rng = thread_rng();