set hidden = 1
if(roundIs=="Ring Around The Zodiac"&&canFight==0||usr.style=="Spectating"||usr.stabSpam)
if(usr.insane==1||roundIs=="Psycho Hunt"||roundIs=="Ring Around The Zodiac"||roundIs=="The Mystery Zodiac")
for(var/mob/M in get_step(usr,usr.dir))//Problem
if(usr.insane==0&&M.insane==0&&roundIs!="Ring Around The Zodiac")
usr<<"Can't hurt someone who isn't insane!"
view(usr)<<"<font color = green>[usr] stabbed [M] with a knife!"
view(usr)<<"<font color = green>[usr] hits [M] with a [usr.secondWeapon]!"
It works if I'm a distance away from the person, but if I'm up on them it doesn't recognize them so I can't stab them. Anyone know a workaround to get this right? I've also had problems where I've stabbed myself. I've done a test with the following:
for(var/mob/M in get_step(usr,usr.dir))
And here's what I get (video: ignore the poor pixel movement, was trying to fix it):