[MIRROR] fix a runtime in the keyloop (#9813)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-01-07 04:43:47 +01:00
committed by GitHub
co-authored by Kashargul
parent 8822e9e9e1
commit 0144bf1e6e
3 changed files with 14 additions and 6 deletions
@@ -131,6 +131,9 @@ These should come standard with the Protean rigsuit, unless you want them to wor
/obj/item/rig_module/protean/armor/process()
if(active)
var/mob/living/carbon/human/H = holder.wearer
if(!H)
deactivate(1)
return
if(istype(H.species, /datum/species/protean))
to_chat(H, span_warning("Your Protean modules do not function on yourself."))
deactivate(1)
@@ -185,7 +188,10 @@ These should come standard with the Protean rigsuit, unless you want them to wor
if(active)
var/mob/living/carbon/human/H = holder.wearer
var/mob/living/P = holder?:myprotean
if((istype(H.species, /datum/species/protean)) || !H || !P)
if(!H || !P)
deactivate()
return
if(istype(H.species, /datum/species/protean))
to_chat(H, span_warning("Your Protean modules do not function on yourself."))
deactivate()
return