Fixes a bug in scriptmanager. Resolves Issue 259.

This commit is contained in:
Griatch 2012-09-25 07:42:52 +02:00
parent d535d77811
commit 7d4bf6c8d2
2 changed files with 5 additions and 4 deletions

View file

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

View file

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