From 18323af79f8b613c2b84209b214018e21eeff876 Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Tue, 10 Dec 2019 20:18:07 +0800 Subject: [PATCH] 羁绊 bug --- src/models/RolePlugin.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index ddf82e7..1ade6b3 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -605,9 +605,9 @@ function RolePlugin.bind(Role) relations[camp] = (relations[camp] or 0) + 1 end end - if not next(relations) then return nil end - local curData = csvdb["unit_relationCsv"][0] + if not next(relations) then return curData end + for _, data in ipairs(csvdb["unit_relationCsv"]) do local had = {} local isDone = true -- libgit2 0.21.2