prevent crawling away when you get grab intented (#35387)

* Update human.dm

* make it work

why does an empty list count as true anyway
This commit is contained in:
samo priimek
2023-11-19 00:30:31 +01:00
committed by GitHub
parent 72f95cba5a
commit 08cd65388e

View File

@@ -2083,7 +2083,7 @@
return FALSE return FALSE
if(!isfloor(target) || !isfloor(get_turf(src)) || !Adjacent(target)) if(!isfloor(target) || !isfloor(get_turf(src)) || !Adjacent(target))
return FALSE 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 return FALSE
var/crawldelay = 0.2 SECONDS var/crawldelay = 0.2 SECONDS
if (crawlcounter >= max_crawls_before_fatigue) if (crawlcounter >= max_crawls_before_fatigue)