From 4eb1ecbd3253f6a67682397fd3c676e55b194f1a Mon Sep 17 00:00:00 2001 From: Halonexus Date: Tue, 17 Dec 2024 14:40:15 +0300 Subject: [PATCH] Updated patience checks --- code/modules/mob/living/simple_animal/hostile/hostile.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/hostile/hostile.dm b/code/modules/mob/living/simple_animal/hostile/hostile.dm index 86c84c8b0c94..03bcab619e6f 100644 --- a/code/modules/mob/living/simple_animal/hostile/hostile.dm +++ b/code/modules/mob/living/simple_animal/hostile/hostile.dm @@ -112,7 +112,7 @@ return if(client) return - if(lose_patience_timeout && patience_last_interaction + lose_patience_timeout < world.time) + if(lose_patience_timeout && !QDELETED(target) && AIStatus == AI_ON && patience_last_interaction + lose_patience_timeout < world.time) LosePatience() if(!can_patrol) return