From 50ecb4c1c79a7b4897c7e8ff48de47236fac6204 Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Fri, 23 Aug 2019 15:27:10 +0800 Subject: [PATCH] 增加return 判断 --- src/actions/TowerAction.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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