ID:144613
 
Code:
obj/spider
wrap
icon = 'SpiderWrap.dmi'
icon_state = ""
density = 1
layer = MOB_LAYER+99999999
Bump(A)
if(ismob(A))
var/mob/M = A
if(M.Kaiten||M.sphere)
return
var/damage = round(src.nin*1.3)
if(damage >= 1)
if(M.trapped == 0)
M.Frozen = 1
src.icon_state = "wrap"

M.trapped = 1
view(6) << "[M] was trapped by the webbing!"
//Right here is where the move stops..freezes them and just ends..nothing is deleted or anthing I don't know y though.
var/mob/O = src.Gowner

sleep(10)
var/drain = rand(50,1000)
M.chakra -= drain
view(6) << "[drain] chakra has been drained from [M]!"
var/random = rand(1,2)
if(random == 2)

M.health -= damage
view(6) << "[M] has been hurt by the web for [damage]!"
M.trapped = 0
M.Death(O)

M.Frozen = 0
M.trapped = 0
M.Death(O)
del(src)
else
del(src)
return
del(src)
if(istype(A,/turf/))
var/turf/T = A
if(T.density)
del(src)
if(istype(A,/obj/))
del(src)


Problem description:

I wrote in there where the move just stops..leaves enemy frozen and overlay stays there. Idk why it stops there for no apparent reason. If you can't figure anything out i have the actual verb I can post on here if that might have something to do with it.
var/mob/O!

I think.

obj/spider
wrap
icon = 'SpiderWrap.dmi'
icon_state = ""
density = 1
layer = MOB_LAYER+99999999
Bump(A)
if(ismob(A))
var/mob/M = A
if(M.Kaiten||M.sphere)
return
var/damage = round(src.nin*1.3)
if(damage >= 1)
if(M.trapped == 0)
M.Frozen = 1
src.icon_state = "wrap"
M.trapped = 1
view(6) << "[M] was trapped by the webbing!"
// var/mob/O = src.Gowner REMOVE THIS LINE

sleep(10)
var/drain = rand(50,1000)
M.chakra -= drain
view(6) << "[drain] chakra has been drained from [M]!"
if(prob(50)) //CHANGED THIS. DOES THE SAME THING: 50% chance of...
M.health -= damage
view(6) << "[M] has been hurt by the web for [damage]!"
M.trapped = 0
//M.Death(O) REMOVE THIS LINE TOO
M.Frozen = 0
M.trapped = 0
var/mob/O = src.Gowner //ADDED
M.Death(O)
del(src)
else
del(src)
return
del(src)
if(istype(A,/turf/))
var/turf/T = A
if(T.density)
del(src)
if(istype(A,/obj/))
del(src)



I could be well wrong, but try this.