//part of an attack verb
Deathcheck
if(M.vitality <= 0)
if(!M.client)
del(M)
else
world << "[M] has died!"
M.vitality = M.max_vitality
else
if(M.ishealing == 0)
goto recover
else
return
recover
M.recover()//116th line
Then it gives me errors becuase the sleep() part is delaying the WHOLE proc. Like when attacking something, after its dead, I keep on getting a null vitality bug. How can I make the sleep() proc not delay the WHOLE proc?
This is the error:
runtime error: Cannot execute null.recover().
proc name: Attack (/proc/Attack)
source file: Battle.dm,116
usr: Sariat (/mob/kid)
src: null
call stack:
Attack(null)
Sariat (/mob/kid): punch()
Thanks for reading!
-ST