mob
proc
beam()
var/obj/A = new/obj/KamehamehaHead()
A.dir = src.dir
A.loc = src.loc
while(A)
var/obj/B = new/obj/KamehamehaTrail()
var/list/L[]
B.dir = A.dir
L+=B
sleep(2)
B.loc = A.loc
step(A,A.dir)
var/turf/T =A.loc
if(T.density)
del A
for(B in L)
del B
else
for(var/mob/M as mob in T)
if(M==src) continue
world<<"[M] has been hit by [src]'s Kamehameha"
del A
for(B in L)
del B
Problem description: The Beams head will delete fine, but the trail wont...anyone see the problem? thanks
Further example: