From 08cd65388ea004100ab4a4bd1f665852928ace9b Mon Sep 17 00:00:00 2001 From: samo priimek Date: Sun, 19 Nov 2023 00:30:31 +0100 Subject: [PATCH] prevent crawling away when you get grab intented (#35387) * Update human.dm * make it work why does an empty list count as true anyway --- code/modules/mob/living/carbon/human/human.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index b2c4520b17d..c6f5a3c6767 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -2083,7 +2083,7 @@ return FALSE if(!isfloor(target) || !isfloor(get_turf(src)) || !Adjacent(target)) return FALSE - if(isUnconscious() || stunned || paralysis || !check_crawl_ability() || pulledby || locked_to || client.move_delayer.blocked()) + if(isUnconscious() || stunned || paralysis || !check_crawl_ability() || pulledby || grabbed_by.len || locked_to || client.move_delayer.blocked()) return FALSE var/crawldelay = 0.2 SECONDS if (crawlcounter >= max_crawls_before_fatigue)