From 520dd57bf9db3235e0d91b5918d037747257f9e3 Mon Sep 17 00:00:00 2001 From: kevinz000 <2003111+kevinz000@users.noreply.github.com> Date: Mon, 10 Feb 2020 04:33:27 -0700 Subject: [PATCH] Update mob_helpers.dm --- code/modules/mob/mob_helpers.dm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/code/modules/mob/mob_helpers.dm b/code/modules/mob/mob_helpers.dm index f4133bcf9d..4d07e407b1 100644 --- a/code/modules/mob/mob_helpers.dm +++ b/code/modules/mob/mob_helpers.dm @@ -420,13 +420,10 @@ It's fairly easy to fix if dealing with single letters but not so much with comp return TRUE /mob/proc/getImplant(type) - if (!istype(src,/mob/living)) - return - var/mob/living/L = src - for (var/I in L.implants) - if (istype(I,type)) - return I - return null + return + +/mob/living/getImplant(type) + return locate(type) in implants /proc/canGhostWrite(var/mob/A, var/obj/target, var/desc="", var/allow_all=FALSE) if(allow_all & TRUE)