for(var/mob/M in oview(6))
Bump(mob/M in get_step(M,src.dir))
var/extra = rand(1,4)
var/damage = src.strength + extra - M.endurance
M.HP -= damage
if(M.HP <= 0)
world << "[M] has been killed by [src]!"
I want to make a wandering and attack proc for NPCs, but it doesn't work, why?