TG: - Only humans can now use the toggle lock verbs on closets.

Revision: r3742
Author: 	 baloh.matevz
This commit is contained in:
Erthilo
2012-06-07 03:31:37 +01:00
parent eb7ae97624
commit ed0b05ff11

View File

@@ -136,6 +136,8 @@
if(!usr.canmove || usr.stat || usr.restrained()) // Don't use it if you're not able to! Checks for stuns, ghost and restrain
return
if(!opened) // If we let him lock it while it's open, it will close without the items inside going with it
togglelock(usr)
if (ishuman(usr))
if (!opened)
togglelock(usr)
else
usr << "\red This mob type can't use this verb."