mob
Story
Pidgey
icon = 'Pidgey.dmi'
name = "Pidgey"
hp = 200
strength = 15
var/mob/Pokemon/P
New()
. = ..()
spawn()
move()
proc/move()
while(src)
var/player_found = 0
for(P in oview(8,src))
step_towards(src,P)
player_found = 1
break
if(player_found != 1)
step_rand(src)
sleep(10)
sleep(5)
Bump(mob/M)
if(istype(M,/mob/Pokemon))
Attack2(M)
proc/Attack2(mob/M)
var/damage = rand(1,strength)
M.hp -= damage
M <<"You are being attacked by [src]!"
src.exp += rand(5,10)
M.UserDcheck(src)
Problem description:for some reason the AI isn't attacking and isn't moving at all, it just stands there doing nothing, any way to fix this?