Fixed gremorian cocoon verb (#19501)

Fixed gremorian cocoon verb.
Slight cleanup with usage of get_turf() in the cocoon verb, instead of
the loc variable.
This commit is contained in:
Fluffy
2024-06-21 05:34:55 +00:00
committed by GitHub
parent 2e87f4ebba
commit f9fe2d0391
2 changed files with 63 additions and 3 deletions
@@ -375,12 +375,13 @@
src.visible_message("\The [src] begins to secrete a sticky substance around \the [P].")
if(!do_after(src, 80))
return
if(P && isturf(P) && get_dist(src,P) <= 1)
var/obj/effect/spider/cocoon/C = new(P.loc)
if(P && isturf(P.loc) && get_dist(src, P) <= 1)
var/obj/effect/spider/cocoon/C = new(get_turf(P))
var/large_cocoon = FALSE
C.pixel_x = P.pixel_x
C.pixel_y = P.pixel_y
for(P in C.loc)
for(P in get_turf(C))
if(istype(P, /mob/living/simple_animal/hostile/giant_spider))
continue
large_cocoon = TRUE