mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
@@ -61,12 +61,13 @@
|
|||||||
|
|
||||||
/obj/item/weapon/blobcore_chunk/proc/get_carrier(var/atom/target)
|
/obj/item/weapon/blobcore_chunk/proc/get_carrier(var/atom/target)
|
||||||
var/atom/A = target ? target.loc : src
|
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.
|
if(isturf(A) || isarea(A)) // Something has gone horribly wrong if the second is true.
|
||||||
return FALSE // No mob is carrying us.
|
return FALSE // No mob is carrying us.
|
||||||
|
|
||||||
|
if(!istype(A, /mob/living))
|
||||||
|
A = get_carrier(A)
|
||||||
|
|
||||||
return A
|
return A
|
||||||
|
|
||||||
/obj/item/weapon/blobcore_chunk/blob_act(obj/structure/blob/B)
|
/obj/item/weapon/blobcore_chunk/blob_act(obj/structure/blob/B)
|
||||||
|
|||||||
Reference in New Issue
Block a user