From f4b732db380c78f9107d090b7ea61a0ecd233caa Mon Sep 17 00:00:00 2001 From: GDN <96800819+GDNgit@users.noreply.github.com> Date: Wed, 18 Jan 2023 21:34:29 -0600 Subject: [PATCH] thunk runtime fix (#20204) --- code/game/area/areas.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/game/area/areas.dm b/code/game/area/areas.dm index d019287a825..d933ce21f4f 100644 --- a/code/game/area/areas.dm +++ b/code/game/area/areas.dm @@ -526,9 +526,11 @@ thunk(M) /area/proc/thunk(mob/living/carbon/human/M) - if(ishuman(M)) // Only humans can wear magboots, so we give them a chance to. - if(istype(M.shoes, /obj/item/clothing/shoes/magboots) && (M.shoes.flags & NOSLIP)) - return + if(!istype(M)) // Rather not have non-humans get hit with a THUNK + return + + if(istype(M.shoes, /obj/item/clothing/shoes/magboots) && (M.shoes.flags & NOSLIP)) // Only humans can wear magboots, so we give them a chance to. + return if(M.dna.species.spec_thunk(M)) //Species level thunk overrides return