Commit bc902e2db9927a008ae7b2640fd0ac1f50723348

Authored by zhouhaihai
1 parent a230673a

增加开放判断

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
src/actions/HangAction.lua
... ... @@ -419,8 +419,10 @@ function _M.startBonusBattleRpc(agent, data)
419 419  
420 420 if not role:isFuncUnlock(FuncUnlock.BonusBattle) then return end
421 421  
422   -
423 422 local bonusData = csvdb["bonus_battleCsv"][id]
  423 +
  424 + if not role:isTimeResetOpen(TimeReset["DailyBattle" .. bonusData.type]) then return end
  425 +
424 426 if not bonusData then return 1 end
425 427 local hangPass = role:getProperty("hangPass")
426 428 if not hangPass[bonusData.unlock] then return 2 end
... ...