This commit is contained in:
Ghom
2020-03-29 18:57:48 +02:00
committed by GitHub
parent 5e5bc2a690
commit 98eff75e9f
+4 -2
View File
@@ -480,8 +480,10 @@
return new fabrication_object(loc)
/mob/living/simple_animal/hostile/swarmer/proc/Integrate(atom/movable/target)
if(target.resistance_flags & INDESTRUCTIBLE)
return FALSE
if(isobj(target))
var/obj/O = target
if(O.resistance_flags & INDESTRUCTIBLE)
return FALSE
for(var/mob/living/L in GetAllContents())
if(!ispAI(L) && !isbrain(L))
to_chat(src, "<span class='warning'>An organism has been detected inside this object. Aborting.</span>")