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
This commit is contained in:
aranclanos@hotmail.com
2013-01-02 12:25:26 +00:00
parent f2854db4b0
commit 0eee76d693

View File

@@ -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))