This is part of my NPC code:
mob/proc
Wander()
while(src)
for(var/mob/M in oview(6))
if(!M.client) continue
if(M in oview(1))
call(/mob/Attack/proc/Attack)(M)
and this is the attack code been call
mob/Attack/proc//Attacks.dm,1
Attack(mob/M in oview(1))//2
src.hit += src.Atk(M,src)//3
return//4
Problem description: I'm getting:
runtime error: Cannot execute null.Atk().
proc
name: Attack (/mob/Attack/proc/Attack)
source file: Attacks.dm,3
usr: Fire (/mob/Boss)
src: null
call stack:
Attack(Prf X (/mob/Player))
how do I get call() to send the src to the proc?