ID:143808
 
Code:
                    if(locate(M) in oview(src,1))
//Stuff happens
else
src << "\red [M] is too far away to continue fighting."
src.fighting = 0
return


Problem description:
The problem is when I'm next to M the part in the if() works perfectly. When I am not next to M for some reason the else does not go through, nothing happens. What am I doing wrong? And how can I fix this?
Well, I'm assuming that M is already an instance of an atom (probably a mob). So, locate() is unneeded, as it is only used with types, tags, coordinates, and text references. So, just remove the locate().
In response to Garthor
Wow I'm so stupid. I had a if(M in get_step(src,src.dir)). Up way before this part and thats why it wasnt getting down there, cause I wasnt facing M. But yeah it works now. Thanks.