Commit 1dc5abc2d31db74bc2cfa7655eefa5f0fb9421ec
1 parent
9fc8b7f0
字符串分割错误遗漏
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
src/actions/SeaportAction.lua
... | ... | @@ -129,13 +129,14 @@ function _M.taskRpc(agent, data) |
129 | 129 | if oper == 1 then -- 开始委托 |
130 | 130 | if team == "" then return 3 end |
131 | 131 | local conditions = data.condition:toTableArray(true) |
132 | - local heros = team:toNumMap() | |
132 | + local heros = team:toArray(true,"=") | |
133 | + if not next(heros) then return 8 end | |
133 | 134 | local UnitCsv = csvdb["unitCsv"] |
134 | 135 | for _, conds in pairs(conditions) do |
135 | 136 | local count = 0 |
136 | 137 | for _, heroId in pairs(heros) do |
137 | 138 | local hero = role.heros[heroId] |
138 | - if not hero then return end | |
139 | + if not hero then return 8 end | |
139 | 140 | |
140 | 141 | if conds[1] == 1 then |
141 | 142 | if hero:getProperty("level") >= conds[2] then | ... | ... |