Cloning someone without a brain will now bring up an error message and not allow you to clone them.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1284 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2011-03-27 00:28:26 +00:00
parent 4416f41093
commit 3f518907fa

View File

@@ -309,9 +309,12 @@
return
/obj/machinery/computer/cloning/proc/scan_mob(mob/living/carbon/human/subject as mob)
if ((isnull(subject)) || (!istype(subject, /mob/living/carbon/human)) || (!subject.dna))
if ((isnull(subject)) || (!(istype(subject, /mob/living/carbon/human))) || (!subject.dna))
src.temp = "Error: Unable to locate valid genetic data."
return
if (subject.brain_op_stage == 4.0)
src.temp = "Error: No signs of intelligence detected."
return
if ((!subject.ckey) || (!subject.client))
src.temp = "Error: Mental interface failure."
return