Commit 54a82e42b57ab4f2d4073a2514e1fb35bb10d3f5
Merge branch 'bugfix' of 120.26.43.151:wasteland/server into bugfix
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} | ... | ... |