Crossed(A)
if(istype(A,/mob))
var/mob/O=owner
var/mob/D=A
if(O.aff==D.aff)return
D.snared(15*O.tier51,3)
if(istype(A,/obj))
var/obj/T = A
if(T.density)
T.loc=loc
I get the following runtime error:
runtime error: Cannot read null.aff
proc name: Crossed (/obj/staticfield/Crossed)
source file: Copy Ninja Jutsus.dm,84
usr: JonJon (/mob/player)
src: the staticfield (/obj/staticfield)
call stack:
"aff" is a mob/var initialized to 0. I don't know why it's saying it's null. And I'm not certain why I'm getting this error.