From 78b88892815ca923e597273957ac7ca935dccd5f Mon Sep 17 00:00:00 2001 From: xtaodada Date: Mon, 18 Dec 2023 20:47:20 +0800 Subject: [PATCH] :bug: Fix script characters unexpected change --- plugins/genshin/gcsim/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/genshin/gcsim/runner.py b/plugins/genshin/gcsim/runner.py index c2f3f1d..d503bd6 100644 --- a/plugins/genshin/gcsim/runner.py +++ b/plugins/genshin/gcsim/runner.py @@ -169,7 +169,7 @@ class GCSimRunner: if script is None: return GCSimResult(error="未找到脚本", user_id=user_id, uid=uid, script_key=script_key) try: - merged_script = GCSimConverter.merge_character_infos(script, character_infos) + merged_script = GCSimConverter.merge_character_infos(script.copy(), character_infos) except ValueError: return GCSimResult(error="无法合并角色信息", user_id=user_id, uid=uid, script_key=script_key) if not config.debug: