diff --git a/src/actions/TowerAction.lua b/src/actions/TowerAction.lua index 4bace46..8db9a96 100644 --- a/src/actions/TowerAction.lua +++ b/src/actions/TowerAction.lua @@ -76,9 +76,9 @@ function _M.endBattleRpc(agent, data) local passTime = msg.passTime local towerInfo = role:getProperty("towerInfo") - if towerInfo.l ~= id or not towerInfo.k or towerInfo.k ~= key then return end + if towerInfo.l ~= id or not towerInfo.k or towerInfo.k ~= key then return 1 end local curTower = csvdb["tower_battleCsv"][id] - if not curTower then return end + if not curTower then return 2 end local curCount, nextTime = getUpdateTime(towerInfo.c, towerInfo.t) -- libgit2 0.21.2