fixes on_mob eyes overlays not updating properly sometimes.

This commit is contained in:
Ghommie
2019-12-06 03:38:39 +01:00
parent 8a6b9ac7e0
commit d6fe78f4a7
3 changed files with 20 additions and 14 deletions
+2 -1
View File
@@ -128,7 +128,8 @@
current.clear_alert("bloodsense")
if(ishuman(current))
var/mob/living/carbon/human/H = current
H.eye_color = initial(H.eye_color)
var/obj/item/organ/eyes/eyes = H.getorganslot(ORGAN_SLOT_EYES)
H.eye_color = eyes?.eye_color || initial(H.eye_color)
H.dna.update_ui_block(DNA_EYE_COLOR_BLOCK)
REMOVE_TRAIT(H, TRAIT_CULT_EYES, "valid_cultist")
H.update_body()