Merge pull request #12480 from PidgeyThePirate/Issue_12466_IPC_EMP_Identity_Loss_Fix

Issue #12466: IPC EMP Identity Loss Fix
This commit is contained in:
Crazy Lemon
2020-02-06 20:01:04 -07:00
committed by GitHub
@@ -158,10 +158,14 @@
return
/mob/living/carbon/human/proc/ChangeToHusk()
var/obj/item/organ/external/head/H = bodyparts_by_name["head"]
// If the target has no DNA to begin with, its DNA can't be damaged beyond repair.
if(NO_DNA in dna.species.species_traits)
return
if(HUSK in mutations)
return
var/obj/item/organ/external/head/H = bodyparts_by_name["head"]
if(istype(H))
H.disfigured = TRUE //makes them unknown without fucking up other stuff like admintools
if(H.f_style)