Commit ea54a93517ef60dd763ae2aabf83cb4f9d4afcc0

Authored by liuzujun
1 parent ebbed4db

电波塔bug

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
1 -Subproject commit bd13610bc236a8df4eede66365eb499ecd5b3c45 1 +Subproject commit 9aff702ee3155b22558066e653585574bc730791
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