From 0eee76d6939b3dad23e709cd5e606ab82d994f89 Mon Sep 17 00:00:00 2001 From: "aranclanos@hotmail.com" Date: Wed, 2 Jan 2013 12:25:26 +0000 Subject: [PATCH] Runtime fix for the singularity, who is trying to search for the var glasses on mobs without them. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5451 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/power/singularity/singularity.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/modules/power/singularity/singularity.dm b/code/modules/power/singularity/singularity.dm index 835450cb10a..16e62ebc3a5 100644 --- a/code/modules/power/singularity/singularity.dm +++ b/code/modules/power/singularity/singularity.dm @@ -422,9 +422,11 @@ var/global/list/uneatable = list( continue if(M.stat == CONSCIOUS) - if(istype(M:glasses,/obj/item/clothing/glasses/meson)) - M << "\blue You look directly into The [src.name], good thing you had your protective eyewear on!" - return + if (istype(M,/mob/living/carbon/human)) + var/mob/living/carbon/human/H = M + if(istype(H.glasses,/obj/item/clothing/glasses/meson)) + H << "\blue You look directly into The [src.name], good thing you had your protective eyewear on!" + return M << "\red You look directly into The [src.name] and feel weak." M.apply_effect(3, STUN) for(var/mob/O in viewers(M, null))