diff --git a/src/actions/TowerAction.lua b/src/actions/TowerAction.lua index ba50852..7d6358d 100644 --- a/src/actions/TowerAction.lua +++ b/src/actions/TowerAction.lua @@ -31,9 +31,9 @@ function _M.startBattleRpc(agent, data) local towerInfo = role:getProperty("towerInfo") if towerType == 0 and (towerInfo.l or 1) ~= id then return 2 end -- 层数不对 - if towerType == 1 and ((towerInfo.l1 or 10001) ~= id or (towerInfo.l or 1) < 10) then return 2 end -- 层数不对 - if towerType == 2 and ((towerInfo.l2 or 20001) ~= id or (towerInfo.l or 1) < 10) then return 2 end -- 层数不对 - if towerType == 3 and ((towerInfo.l3 or 30001) ~= id or (towerInfo.l or 1) < 10) then return 2 end -- 层数不对 + if towerType == 1 and ((towerInfo.l1 or 10001) ~= id or (towerInfo.l or 1) <= globalCsv.tower_open[towerType]) then return 2 end -- 层数不对 + if towerType == 2 and ((towerInfo.l2 or 20001) ~= id or (towerInfo.l or 1) <= globalCsv.tower_open[towerType]) then return 2 end -- 层数不对 + if towerType == 3 and ((towerInfo.l3 or 30001) ~= id or (towerInfo.l or 1) <= globalCsv.tower_open[towerType]) then return 2 end -- 层数不对 if not csvdb["tower_battleCsv"][id] then return 4 end -- libgit2 0.21.2