Sorry NPCs, no last words from beyond the grave.
This commit is contained in:
parent
ed3dcdcb64
commit
b878f8f95c
@ -268,6 +268,10 @@ impl TaskHandler for NPCSayTaskHandler {
|
|||||||
Some(r) => r
|
Some(r) => r
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if npc_item.is_dead {
|
||||||
|
return Ok(None);
|
||||||
|
}
|
||||||
|
|
||||||
let (is_explicit, say_what) = match &say_info.talk_type {
|
let (is_explicit, say_what) = match &say_info.talk_type {
|
||||||
NPCSayType::FromFixedList(l) => {
|
NPCSayType::FromFixedList(l) => {
|
||||||
let mut rng = thread_rng();
|
let mut rng = thread_rng();
|
||||||
|
Loading…
Reference in New Issue
Block a user