Attack()
var/mob/M = locate() in get_step(src,src.dir)
if (!M)
return
if(src.NPC == 1)
usr<< "<font size = 1>You cant attack that"
if(usr.hitting == 0)
if(usr.Strength - M.Defence > 0)
usr.hitting = 1
flick("punch",usr)
var/dmg = usr.Strength - M.Defence
if(M.HitPoints- dmg <= 0)
if(alert(usr,"Spare [M]?","Spare","Yes","No")=="No")
M.HitPoints -= dmg
src.Update(src)
M.PowerlevelCheck()
sleep(1)
usr.hitting = 0
else
src.Update(src)
usr.hitting = 1
M.HitPoints -= 1
M.PowerlevelCheck()
usr.hitting = 0
ok when i attack my friend it says do you wish to spare but when he attacks me it dosent ?!?!?
Even it is a verb, you should try to avoid usr. Replace it with src or somekind of arguement.
Also I think that you should do