diff --git a/src/actions/HangAction.lua b/src/actions/HangAction.lua index fb4a39b..4c2d8c3 100644 --- a/src/actions/HangAction.lua +++ b/src/actions/HangAction.lua @@ -215,18 +215,18 @@ function _M.roleFormatRpc(agent , data) local hangTeam = role:getProperty("hangTeam") for slot, heroId in pairs(msg.heros) do if not role.heros[heroId] then - return + return 1 end end local supports = {} for slot, support in pairs(msg.supports or {}) do - if slot ~= 1 and slot ~= 2 then return end + if slot ~= 1 and slot ~= 2 then return 2 end local level = role.dinerData:getProperty("dishTree"):getv(support, 0) - if level <= 0 then return end + if level <= 0 then return 3 end supports[slot] = support end - if not checkLeader(hangTeam.heros, hangTeam.leader) then return end + if not checkLeader(msg.heros, msg.leader) then return 4 end table.clear(hangTeam) hangTeam.heros = {} -- libgit2 0.21.2