From c2fe562ad2bca436aa3add634e72588f8249738b Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Mon, 28 Mar 2016 22:39:53 -0400 Subject: [PATCH] Puke Fix --- code/modules/mining/equipment_locker.dm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/code/modules/mining/equipment_locker.dm b/code/modules/mining/equipment_locker.dm index a1a4ff10d0f..9da63146512 100644 --- a/code/modules/mining/equipment_locker.dm +++ b/code/modules/mining/equipment_locker.dm @@ -556,14 +556,15 @@ L.Weaken(3) if(ishuman(L)) shake_camera(L, 20, 1) + var/mob/living/carbon/human/H = L spawn(20) - if(L) - L.visible_message("[L.name] vomits from travelling through the [src.name]!", "You throw up from travelling through the [src.name]!") - L.nutrition -= 20 - L.adjustToxLoss(-3) - var/turf/T = get_turf(L) - T.add_vomit_floor(L) - playsound(L, 'sound/effects/splat.ogg', 50, 1) + if(H && H.check_has_mouth()) + H.visible_message("[L.name] vomits from travelling through the [src.name]!", "You throw up from travelling through the [src.name]!") + H.nutrition -= 20 + H.adjustToxLoss(-3) + var/turf/T = get_turf(H) + T.add_vomit_floor(H) + playsound(H, 'sound/effects/splat.ogg', 50, 1) /**********************Resonator**********************/