From 722ea6672120d5dd3b9e3ed0ba4ba2cfec1a8871 Mon Sep 17 00:00:00 2001 From: n3ophyt3 Date: Sun, 7 Aug 2011 20:07:22 +0000 Subject: [PATCH] Reagents no longer try to react with ghosts. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1992 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/chemical/Chemistry-Reagents.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/chemical/Chemistry-Reagents.dm b/code/modules/chemical/Chemistry-Reagents.dm index f22f2302572..34c7327e6b2 100644 --- a/code/modules/chemical/Chemistry-Reagents.dm +++ b/code/modules/chemical/Chemistry-Reagents.dm @@ -20,6 +20,8 @@ datum proc reaction_mob(var/mob/M, var/method=TOUCH, var/volume) //By default we have a chance to transfer some + if(!istype(M, /mob/living)) + return //Noticed runtime errors from pacid trying to damage ghosts, this should fix. --NEO var/datum/reagent/self = src src = null //of the reagent to the mob on TOUCHING it. if(method == TOUCH) @@ -45,6 +47,8 @@ datum return on_mob_life(var/mob/living/M as mob) + if(!istype(M, /mob/living)) + return //Noticed runtime errors from pacid trying to damage ghosts, this should fix. --NEO holder.remove_reagent(src.id, REAGENTS_METABOLISM) //By default it slowly disappears. return