Commit ea54a93517ef60dd763ae2aabf83cb4f9d4afcc0
1 parent
ebbed4db
电波塔bug
Showing
3 changed files
with
5 additions
and
5 deletions
Show diff stats
src/actions/TowerAction.lua
@@ -114,9 +114,9 @@ function _M.endBattleRpc(agent, data) | @@ -114,9 +114,9 @@ function _M.endBattleRpc(agent, data) | ||
114 | 114 | ||
115 | curLevel = curLevel + 1 | 115 | curLevel = curLevel + 1 |
116 | reward, change = role:award(rewardStr, {log = {desc = "towerBattle", int1 = id}}) | 116 | reward, change = role:award(rewardStr, {log = {desc = "towerBattle", int1 = id}}) |
117 | - if towerType == 0 then | ||
118 | - role:checkTaskEnter("TowerPass", {level = towerInfo.l, type = towerType + 1}) | ||
119 | - end | 117 | + --if towerType == 0 then |
118 | + role:checkTaskEnter("TowerPass", {level = curLevel % 10000, type = towerType + 1}) | ||
119 | + --end | ||
120 | end | 120 | end |
121 | 121 | ||
122 | if towerType == 0 then | 122 | if towerType == 0 then |
src/models/RoleTask.lua
@@ -810,7 +810,7 @@ function RoleTask.bind(Role) | @@ -810,7 +810,7 @@ function RoleTask.bind(Role) | ||
810 | calTask[id] = (calTask[id] or 0) + 1 | 810 | calTask[id] = (calTask[id] or 0) + 1 |
811 | end | 811 | end |
812 | elseif cfg.type == 13 then -- 挑战电波塔主塔 | 812 | elseif cfg.type == 13 then -- 挑战电波塔主塔 |
813 | - if cfg.condition2 == param1 and param2 == 1 then | 813 | + if cfg.condition2 <= param1 and param2 == 1 then |
814 | calTask[id] = (calTask[id] or 0) + 1 | 814 | calTask[id] = (calTask[id] or 0) + 1 |
815 | end | 815 | end |
816 | end | 816 | end |