Commit 4591e219c78a5b9e6752ccae18cac78fc4940bcd
1 parent
bb8c1d57
bug
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/actions/HangAction.lua
... | ... | @@ -562,7 +562,7 @@ function _M.startBonusBattleRpc(agent, data) |
562 | 562 | if not bonusData then return 3 end |
563 | 563 | local bonusStar = role:getProperty("bonusStar") |
564 | 564 | |
565 | - if not bonusStar[bonusData.unlock] or bonusStar[bonusData.unlock] == 0 then return 4 end | |
565 | + if bonusData.unlock ~= 0 and (not bonusStar[bonusData.unlock] or bonusStar[bonusData.unlock] == 0) then return 4 end | |
566 | 566 | |
567 | 567 | if bonusStar[id] and bonusStar[id] >= (1 << #bonusData.sweep_condition:toTableArray(true)) - 1 then |
568 | 568 | local bonusC = role.dailyData:getProperty("bonusC") | ... | ... |