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