Commit c5e11ffc687610ba2d521c92168abf42ec6da74c
1 parent
c8c76cda
解锁条件修改
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/actions/HangAction.lua
| ... | ... | @@ -560,10 +560,10 @@ function _M.startBonusBattleRpc(agent, data) |
| 560 | 560 | end |
| 561 | 561 | |
| 562 | 562 | if not bonusData then return 3 end |
| 563 | - if not role:checkHangPass(bonusData.unlock) then return 4 end | |
| 563 | + local bonusStar = role:getProperty("bonusStar") | |
| 564 | 564 | |
| 565 | + if not bonusStar[bonusData.unlock] or bonusStar[bonusData.unlock] == 0 then return 4 end | |
| 565 | 566 | |
| 566 | - local bonusStar = role:getProperty("bonusStar") | |
| 567 | 567 | if bonusStar[id] and bonusStar[id] >= (1 << #bonusData.sweep_condition:toTableArray(true)) - 1 then |
| 568 | 568 | local bonusC = role.dailyData:getProperty("bonusC") |
| 569 | 569 | bonusC[bonusData.type] = bonusC[bonusData.type] or {c = 0, b = 0} | ... | ... |