From 86096c3c742542886cc99b1c6c47477e032575ac Mon Sep 17 00:00:00 2001 From: Griatch Date: Wed, 15 Jun 2016 22:48:19 +0200 Subject: [PATCH] Fix the room-alias condition of details in the tutorial. Resolves #981. --- evennia/contrib/tutorial_world/rooms.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/evennia/contrib/tutorial_world/rooms.py b/evennia/contrib/tutorial_world/rooms.py index 33807afaae..cab0731c5d 100644 --- a/evennia/contrib/tutorial_world/rooms.py +++ b/evennia/contrib/tutorial_world/rooms.py @@ -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