thunk runtime fix (#20204)

This commit is contained in:
GDN
2023-01-18 22:34:29 -05:00
committed by GitHub
parent 946fb4dff6
commit f4b732db38
+5 -3
View File
@@ -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