From 87456c081f42abafd26a399ba7fa35a52d311a8a Mon Sep 17 00:00:00 2001 From: FatherGrishnak <42367299+FatherGrishnak@users.noreply.github.com> Date: Tue, 14 Aug 2018 08:31:09 +0000 Subject: [PATCH] Update to fix #1644 --- evennia/objects/manager.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/evennia/objects/manager.py b/evennia/objects/manager.py index 4c81ea186a..6b4a16dde9 100644 --- a/evennia/objects/manager.py +++ b/evennia/objects/manager.py @@ -437,7 +437,7 @@ class ObjectDBManager(TypedObjectManager): """ Create and return a new object as a copy of the original object. All will be identical to the original except for the arguments given - specifically to this method. + specifically to this method. Object contents will not be copied. Args: original_object (Object): The object to make a copy from. @@ -502,6 +502,10 @@ class ObjectDBManager(TypedObjectManager): for script in original_object.scripts.all(): ScriptDB.objects.copy_script(script, new_obj=new_object) + # copy over all tags, if any + for tag in original_object.tags.get(): + new_object.tags.add(tag) + return new_object def clear_all_sessids(self):