diff --git a/src/actions/SeaportAction.lua b/src/actions/SeaportAction.lua index 83ad0cf..f9de60c 100644 --- a/src/actions/SeaportAction.lua +++ b/src/actions/SeaportAction.lua @@ -184,7 +184,7 @@ function _M.taskRpc(agent, data) if not carbonCsv[expCarbonId] or not expCarbonId[coidCarbonId] then return 7 end local totalCoef = 0 - for _, heroId in ipairs(collect.team:toNumMap()) do + for _, heroId in ipairs(collect.team:toArray(true,"=")) do local hero = role.heros[heroId] if hero then totalCoef = totalCoef + getHeroCoef(hero, data.success) diff --git a/src/models/RolePlugin.lua b/src/models/RolePlugin.lua index 6b110ee..094699f 100644 --- a/src/models/RolePlugin.lua +++ b/src/models/RolePlugin.lua @@ -1282,7 +1282,7 @@ function RolePlugin.bind(Role) if not carbonCsv[expCarbonId] or not expCarbonId[coidCarbonId] then return 7 end local totalCoef = 0 - for _, heroId in ipairs(teams:toNumMap()) do + for _, heroId in ipairs(teams:toArray(true,"=")) do local hero = self.heros[heroId] if hero then totalCoef = totalCoef + getHeroCoef(hero, data.success) -- libgit2 0.21.2