From 4906ebd2d2dcfdcfabd3a425cef2dff5b852da8c Mon Sep 17 00:00:00 2001 From: zhengshouren <448949750@qq.com> Date: Sat, 18 May 2019 10:58:36 +0800 Subject: [PATCH] 宝箱关副本结算异常 --- src/actions/HangAction.lua | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/actions/HangAction.lua b/src/actions/HangAction.lua index 3ba8b52..1006e0a 100644 --- a/src/actions/HangAction.lua +++ b/src/actions/HangAction.lua @@ -147,14 +147,23 @@ function _M.endBattleRpc(agent, data) local role = agent.role local msg = MsgPack.unpack(data) local hangInfo = role:getProperty("hangInfo") - if not msg.key or msg.key ~= hangInfo.key then return end + if not msg.key or msg.key ~= hangInfo.key then + return 1 + end local carbonId = msg.carbonId local carbonData = csvdb["idle_battleCsv"][carbonId] + if not carbonData then + return 2 + end if carbonData.main ~= 1 then - if carbonId ~= hangInfo.carbonId then return end + if carbonId ~= hangInfo.carbonId then + return 3 + end end local hangPass = role:getProperty("hangPass") - if hangPass[hangInfo.carbonId] then return end + if hangPass[carbonId] then + return 4 + end local reward if msg.starNum and msg.starNum > 0 then --win hangPass[carbonId] = 1 -- libgit2 0.21.2