mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 08:46:31 +01:00
Re-fixed the special obj/player wrapper for scripts.
This commit is contained in:
parent
37a1d86659
commit
7fd47eb386
1 changed files with 5 additions and 3 deletions
|
|
@ -128,9 +128,11 @@ class ScriptDB(TypedObject):
|
|||
the db_player or db_obj field, using the same obj
|
||||
property name
|
||||
"""
|
||||
if self.db_player:
|
||||
return _GA(self, "db_player")
|
||||
return _GA(self, "db_obj")
|
||||
obj = _GA(self, "db_player")
|
||||
if not obj:
|
||||
obj = _GA(self, "db_obj")
|
||||
if obj:
|
||||
return obj.typeclass
|
||||
|
||||
def __set_obj(self, value):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue