mob
verb
Attack()
set name = "Attack"
for(var/mob/M in get_step(src,src.dir))
if(!src.canattack) return
src.canattack = 0
canattack = 1
flick("attack",usr)
var/damage = round(usr.tai*1.5)
damage+=rand(1,damage)
if(damage <= 0) view(src.client.view,src) << "<i>[src] misses [M]!"
else
M.health -= damage
view() << "<i>[src] attacked [M] for [damage] damage!"
M.Die(src)//calls the die proc
if(random == 5||random==1)
usr.strxp+= rand(1,3)
usr.strlu()
usr.exp += rand(20,30)
usr.LevelUp()
sleep(2)
usr.canattack=1
not to mention that the attack always hits no matter what when its clearly showing it should miss sometimes but I think that could be fixed by a probability unless there is a better way