Fixes a runtime for non-human mobs bleeding on the floor

This commit is contained in:
Crazylemon64
2016-08-22 20:55:36 -07:00
parent ce58dc1366
commit 83e3f3a1af
+2
View File
@@ -116,6 +116,8 @@
if(!..())
return 0
if(!istype(M)) // To avoid non-humans from causing runtimes whena dding blood to the floor
return 0
var/obj/effect/decal/cleanable/blood/B = locate() in contents //check for existing blood splatter
if(!B)
blood_splatter(src,M.get_blood(M.vessel),1)