From 8864df6696ce1b7b3422165ee4ac7fd6b1421fac Mon Sep 17 00:00:00 2001 From: chenyueqi Date: Wed, 17 Mar 2021 16:34:52 +0800 Subject: [PATCH] 电波塔检查任务参数错误 --- src/actions/TowerAction.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/actions/TowerAction.lua b/src/actions/TowerAction.lua index ec44ff4..88b670b 100644 --- a/src/actions/TowerAction.lua +++ b/src/actions/TowerAction.lua @@ -109,7 +109,9 @@ function _M.endBattleRpc(agent, data) curLevel = curLevel + 1 reward, change = role:award(curTower.reward, {log = {desc = "towerBattle", int1 = id}}) - role:checkTaskEnter("TowerPass", {count = 1, type = towerType + 1}) + if towerType == 0 then + role:checkTaskEnter("TowerPass", {level = towerInfo.l}) + end end if towerType == 0 then -- libgit2 0.21.2