Fixed a death implant-related runtime error

This commit is contained in:
Albert Iordache
2012-04-08 21:09:09 +03:00
parent 6e6fd14578
commit 0f592970b9
@@ -285,7 +285,13 @@ the implant may become unstable and either pre-maturely inject the subject or si
process()
var/mob/M = src.loc
if(M.stat == 2)
if(isnull(M)) // If the mob got gibbed
var/obj/item/device/radio/headset/a = new /obj/item/device/radio/headset(null)
a.autosay("states, \"[mobname] has died-zzzzt in-in-in...\"", "[mobname]'s Death Alarm")
del(a)
processing_objects.Remove(src)
else if(M.stat == 2)
var/turf/t = get_turf(M)
var/obj/item/device/radio/headset/a = new /obj/item/device/radio/headset(null)
a.autosay("states, \"[mobname] has died in [t.loc.name]!\"", "[mobname]'s Death Alarm")