Fix prompt tutorial example

This commit is contained in:
Griatch 2024-08-18 12:46:24 +02:00
parent 6f255c9ff8
commit eaff50beb0
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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