mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 04:27:16 +02:00
Fix the room-alias condition of details in the tutorial. Resolves #981.
This commit is contained in:
parent
ddd9387777
commit
86096c3c74
1 changed files with 4 additions and 1 deletions
|
|
@ -154,7 +154,10 @@ class CmdTutorialLook(default_cmds.CmdLook):
|
|||
# ourself. This also means the search function will always
|
||||
# return a list (with 0, 1 or more elements) rather than
|
||||
# result/None.
|
||||
looking_at_obj = caller.search(args, use_nicks=True, quiet=True)
|
||||
looking_at_obj = caller.search(args,
|
||||
# note: excludes room/room aliases
|
||||
candidates=caller.location.contents + caller.contents,
|
||||
use_nicks=True, quiet=True)
|
||||
if len(looking_at_obj) != 1:
|
||||
# no target found or more than one target found (multimatch)
|
||||
# look for a detail that may match
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue