diff --git a/src/actions/SeaportAction.lua b/src/actions/SeaportAction.lua index f9de60c..b41d344 100644 --- a/src/actions/SeaportAction.lua +++ b/src/actions/SeaportAction.lua @@ -129,13 +129,14 @@ function _M.taskRpc(agent, data) if oper == 1 then -- 开始委托 if team == "" then return 3 end local conditions = data.condition:toTableArray(true) - local heros = team:toNumMap() + local heros = team:toArray(true,"=") + if not next(heros) then return 8 end local UnitCsv = csvdb["unitCsv"] for _, conds in pairs(conditions) do local count = 0 for _, heroId in pairs(heros) do local hero = role.heros[heroId] - if not hero then return end + if not hero then return 8 end if conds[1] == 1 then if hero:getProperty("level") >= conds[2] then -- libgit2 0.21.2