Multi-Borer Fix (#11422)

This commit is contained in:
Geeves
2021-03-14 13:04:26 +01:00
committed by GitHub
parent ed15c439ef
commit 4770d6086c
2 changed files with 12 additions and 2 deletions
@@ -73,8 +73,12 @@
if(!E || E.is_stump())
to_chat(src, SPAN_WARNING("\The [H] does not have a head!"))
return
if(!H.species.has_organ[BP_BRAIN])
to_chat(src, SPAN_WARNING("\The [H] does not seem to have an ear canal to breach."))
var/obj/item/organ/internal/I = H.species.has_organ[BP_BRAIN]
if(!I)
to_chat(src, SPAN_WARNING("\The [H] doesn't have a brain!"))
return
if(istype(I, /obj/item/organ/internal/borer))
to_chat(src, SPAN_WARNING("You cannot infest someone who is already infested!"))
return
if(H.isSynthetic())
to_chat(src, SPAN_NOTICE("You can't affect synthetics."))