Prevents the creation of Shadowzombiechangelings (#30681)

* Prevents the creation of Shadowzombiechangelings

* You can still zombie yourself if you really want

* (
This commit is contained in:
KorPhaeron
2017-09-15 03:07:03 -05:00
committed by AnturK
parent 3f4f44cbd1
commit ed43a09864
6 changed files with 10 additions and 5 deletions

View File

@@ -340,6 +340,10 @@ GLOBAL_LIST_INIT(slot2type, list("head" = /obj/item/clothing/head/changeling, "w
return
if(!target)
return
if(NO_DNA_COPY in target.dna.species.species_traits)
if(verbose)
to_chat(user, "<span class='warning'>[target] is not compatible with our biology.</span>")
return
if((target.disabilities & NOCLONE) || (target.disabilities & HUSK))
if(verbose)
to_chat(user, "<span class='warning'>DNA of [target] is ruined beyond usability!</span>")