mob/monster
proc/MonLife()
while(src)
sleep(15)
if(src.hostile)
for(var/mob/M in oview())
if(M.client)
step_towards(src, M)
for(var/mob/M in get_step(src, src.dir))
if(M.client)
src.Attack(M)
if(src.wander)
step_rand(src)
Problem description:
The wandering part is fine. But when it is "hostile" it jumps around three spaces. How do I fix that?
Tell me if this fixes it.
RD