ID:142654
 
Code:
mob/DblClick()
if(src in usr.contents||usr.type==src.type)return


Problem description:
Why doesn't that work, or more specifically the second half doesn't work.
mob/DblClick()
if(src in usr.contents)return
if(usr.type==src.type)return

Yet this works fine...
Order of operations. "in" has very low precedence. You need to put parenthesis around that statement.
In response to Garthor (#1)
oh, i see, in contests or usr.type. K, thank Garthor.