Commit ece07be586af8e04d59d4e3d66b5a54fbdf70618
Merge branch 'bugfix' into tr/publish
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,10 +560,10 @@ function _M.startBonusBattleRpc(agent, data) | ||
560 | end | 560 | end |
561 | 561 | ||
562 | if not bonusData then return 3 end | 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 | if bonusStar[id] and bonusStar[id] >= (1 << #bonusData.sweep_condition:toTableArray(true)) - 1 then | 567 | if bonusStar[id] and bonusStar[id] >= (1 << #bonusData.sweep_condition:toTableArray(true)) - 1 then |
568 | local bonusC = role.dailyData:getProperty("bonusC") | 568 | local bonusC = role.dailyData:getProperty("bonusC") |
569 | bonusC[bonusData.type] = bonusC[bonusData.type] or {c = 0, b = 0} | 569 | bonusC[bonusData.type] = bonusC[bonusData.type] or {c = 0, b = 0} |