From b45ef2da5d2847a64382d14623ac7909aacbfda0 Mon Sep 17 00:00:00 2001 From: KasparoVy Date: Wed, 15 Jun 2016 05:34:41 -0400 Subject: [PATCH] Dethralling a Shadowling Thrall Clears Darksight if it's Activated (#4682) --- code/modules/surgery/other.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/surgery/other.dm b/code/modules/surgery/other.dm index f8051575b05..8e3ff02b091 100644 --- a/code/modules/surgery/other.dm +++ b/code/modules/surgery/other.dm @@ -264,6 +264,9 @@ playsound(S, 'sound/effects/bang.ogg', 50, 1) return 0 user.visible_message("[user] shines light onto the tumor in [target]'s head!", "You cleanse the contamination from [target]'s brain!") + if(target.vision_type) //Turns off their darksight if it's still active. + to_chat(target, "Your eyes are suddenly wrought with immense pain as your darksight is forcibly dismissed!") + target.vision_type = null ticker.mode.remove_thrall(target.mind, 0) target.visible_message("A strange black mass falls from [target]'s head!") new /obj/item/organ/internal/shadowtumor(get_turf(target))