Merge pull request #13623 from trololiver112/Vision-fix

Fixes Shadowling darksight not giving night vision when toggled
This commit is contained in:
Fox McCloud
2020-06-18 15:47:16 -04:00
committed by GitHub
5 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -327,7 +327,7 @@
user.visible_message("[user] shines light onto the tumor in [target]'s [E]!", "<span class='notice'>You cleanse the contamination from [target]'s brain!</span>")
if(target.vision_type) //Turns off their darksight if it's still active.
to_chat(target, "<span class='boldannounce'>Your eyes are suddenly wrought with immense pain as your darksight is forcibly dismissed!</span>")
target.vision_type = null
target.set_sight(null)
SSticker.mode.remove_thrall(target.mind, 0)
target.visible_message("<span class='warning'>A strange black mass falls from [target]'s [E]!</span>")
var/obj/item/organ/thing = new /obj/item/organ/internal/shadowtumor(get_turf(target))