From eaff50beb00c4cb256a7af8c6febef34ba9d61f5 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 18 Aug 2024 12:46:24 +0200 Subject: [PATCH] Fix prompt tutorial example --- CHANGELOG.md | 1 + docs/source/Howtos/Howto-Command-Prompt.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4374b6f66..d67950ca16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ defined explicitly to be restarted/recrated in settings.py (Griatch) - Fix: Passing an already instantiated Script to `obj.scripts.add` (`ScriptHandler.add`) did not add it to the handler's object (Griatch) [Docs][issue3591]: Fix of NPC reaction tutorial code (Griatch) +- Docs: Tutorial fixes (Griatch) [issue3591]: https://github.com/evennia/evennia/issues/3591 [issue3590]: https://github.com/evennia/evennia/issues/3590 diff --git a/docs/source/Howtos/Howto-Command-Prompt.md b/docs/source/Howtos/Howto-Command-Prompt.md index 443c0c8e1b..6f5e0d22e0 100644 --- a/docs/source/Howtos/Howto-Command-Prompt.md +++ b/docs/source/Howtos/Howto-Command-Prompt.md @@ -48,7 +48,7 @@ Here is a simple example of the prompt sent/updated from a command class: if not self.args: target = self.caller else: - target = self.search(self.args) + target = self.caller.search(self.args) if not target: return # try to get health, mana and stamina