diff --git a/src/actions/HangAction.lua b/src/actions/HangAction.lua index c712399..107ec41 100644 --- a/src/actions/HangAction.lua +++ b/src/actions/HangAction.lua @@ -560,10 +560,10 @@ function _M.startBonusBattleRpc(agent, data) end if not bonusData then return 3 end - if not role:checkHangPass(bonusData.unlock) then return 4 end + local bonusStar = role:getProperty("bonusStar") + if not bonusStar[bonusData.unlock] or bonusStar[bonusData.unlock] == 0 then return 4 end - local bonusStar = role:getProperty("bonusStar") if bonusStar[id] and bonusStar[id] >= (1 << #bonusData.sweep_condition:toTableArray(true)) - 1 then local bonusC = role.dailyData:getProperty("bonusC") bonusC[bonusData.type] = bonusC[bonusData.type] or {c = 0, b = 0} -- libgit2 0.21.2