Commit a1e08c9cf958fd72dbe58a90fd7d89fecd4188d1
1 parent
214061fa
宝箱关战斗异常
Showing
1 changed file
with
9 additions
and
3 deletions
Show diff stats
src/actions/HangAction.lua
@@ -119,15 +119,21 @@ function _M.startBattleRpc(agent, data) | @@ -119,15 +119,21 @@ function _M.startBattleRpc(agent, data) | ||
119 | local msg = MsgPack.unpack(data) | 119 | local msg = MsgPack.unpack(data) |
120 | local carbonId = msg.carbonId | 120 | local carbonId = msg.carbonId |
121 | local curData = csvdb["idle_battleCsv"][carbonId] | 121 | local curData = csvdb["idle_battleCsv"][carbonId] |
122 | - if not curData then return end | 122 | + if not curData then |
123 | + return 1 | ||
124 | + end | ||
123 | 125 | ||
124 | local hangInfo = role:getProperty("hangInfo") | 126 | local hangInfo = role:getProperty("hangInfo") |
125 | if curData.main ~= 1 then | 127 | if curData.main ~= 1 then |
126 | - if carbonId ~= hangInfo.carbonId then return end | 128 | + if carbonId ~= hangInfo.carbonId then |
129 | + return 2 | ||
130 | + end | ||
127 | end | 131 | end |
128 | 132 | ||
129 | local hangPass = role:getProperty("hangPass") | 133 | local hangPass = role:getProperty("hangPass") |
130 | - if hangPass[hangInfo.carbonId] then return end | 134 | + if hangPass[carbonId] then |
135 | + return 3 | ||
136 | + end | ||
131 | 137 | ||
132 | local key = tostring(math.random()) | 138 | local key = tostring(math.random()) |
133 | hangInfo.key = key | 139 | hangInfo.key = key |