mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Fix prompt tutorial example
This commit is contained in:
parent
6f255c9ff8
commit
eaff50beb0
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue