mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 05:27:17 +02:00
Fixes a bug in scriptmanager. Resolves Issue 259.
This commit is contained in:
parent
d535d77811
commit
7d4bf6c8d2
2 changed files with 5 additions and 4 deletions
|
|
@ -45,9 +45,9 @@ class ScriptManager(TypedObjectManager):
|
|||
dbref = self.dbref(key)
|
||||
if dbref:
|
||||
script = self.filter(db_obj=obj, id=dbref)
|
||||
if not script:
|
||||
script = self.filter(db_obj=obj, db_key=key)
|
||||
return script
|
||||
if script:
|
||||
return script
|
||||
return self.filter(db_obj=obj, db_key=key)
|
||||
return self.filter(db_obj=obj)
|
||||
|
||||
@returns_typeclass_list
|
||||
|
|
|
|||
|
|
@ -193,8 +193,9 @@ def c_moves(client):
|
|||
## "socializing heavy builder" definition
|
||||
ACTIONS = (c_login,
|
||||
c_logout,
|
||||
(0.3, c_socialize),
|
||||
(0.1, c_socialize),
|
||||
(0.1, c_looks),
|
||||
(0.1, c_help),
|
||||
(0.2, c_creates_obj),
|
||||
(0.2, c_digs),
|
||||
(0.3, c_moves))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue