Fixed bug in get command that let you pick something up several times.
This commit is contained in:
parent
71bdc47fbb
commit
bc587dfd0c
1 changed files with 3 additions and 0 deletions
|
|
@ -272,6 +272,9 @@ class CmdGet(MuxCommand):
|
||||||
# don't allow picking up player objects, nor exits.
|
# don't allow picking up player objects, nor exits.
|
||||||
caller.msg("You can't get that.")
|
caller.msg("You can't get that.")
|
||||||
return
|
return
|
||||||
|
if obj.location == caller:
|
||||||
|
caller.msg("You already hold that.")
|
||||||
|
return
|
||||||
if not obj.access(caller, 'get'):
|
if not obj.access(caller, 'get'):
|
||||||
if obj.db.get_err_msg:
|
if obj.db.get_err_msg:
|
||||||
caller.msg(obj.db.get_err_msg)
|
caller.msg(obj.db.get_err_msg)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue