diff --git a/src/actions/HangAction.lua b/src/actions/HangAction.lua index f98e104..3ba8b52 100644 --- a/src/actions/HangAction.lua +++ b/src/actions/HangAction.lua @@ -119,15 +119,21 @@ function _M.startBattleRpc(agent, data) local msg = MsgPack.unpack(data) local carbonId = msg.carbonId local curData = csvdb["idle_battleCsv"][carbonId] - if not curData then return end + if not curData then + return 1 + end local hangInfo = role:getProperty("hangInfo") if curData.main ~= 1 then - if carbonId ~= hangInfo.carbonId then return end + if carbonId ~= hangInfo.carbonId then + return 2 + end end local hangPass = role:getProperty("hangPass") - if hangPass[hangInfo.carbonId] then return end + if hangPass[carbonId] then + return 3 + end local key = tostring(math.random()) hangInfo.key = key -- libgit2 0.21.2