Merge pull request #7243 from Mechoid/BlobLoop

Blob Infinite Loop Fix
This commit is contained in:
Atermonera
2020-05-30 21:22:47 -07:00
committed by VirgoBot
parent 30cf26ba8e
commit 9e77aca051

View File

@@ -61,12 +61,13 @@
/obj/item/weapon/blobcore_chunk/proc/get_carrier(var/atom/target)
var/atom/A = target ? target.loc : src
if(!istype(A, /mob/living))
A = get_carrier(A)
if(isturf(A) || isarea(A)) // Something has gone horribly wrong if the second is true.
return FALSE // No mob is carrying us.
if(!istype(A, /mob/living))
A = get_carrier(A)
return A
/obj/item/weapon/blobcore_chunk/blob_act(obj/structure/blob/B)