Merge pull request #2787 from Citadel-Station-13/upstream-merge-30681

[MIRROR] Prevents the creation of Shadowzombiechangelings
This commit is contained in:
LetterJay
2017-09-22 08:43:37 -04:00
committed by GitHub
6 changed files with 201 additions and 196 deletions
@@ -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>")