diff --git a/src/actions/HeroAction.lua b/src/actions/HeroAction.lua index 9993bf0..7c6269d 100644 --- a/src/actions/HeroAction.lua +++ b/src/actions/HeroAction.lua @@ -786,7 +786,9 @@ function _M.drawHeroRpc(agent, data) if heroData[field] ~= values[idx] then ok = false break end end if not ok then break end - resultPool[itemId] = {oneData["pool_" .. pool]} -- itemId, count, 概率 + if oneData["pool_" .. pool] > 0 then + resultPool[itemId] = {oneData["pool_" .. pool]} -- itemId, count, 概率 + end break end end @@ -834,7 +836,6 @@ function _M.drawHeroRpc(agent, data) local itemId = math.randWeight(resultPool, 1) local itemData = csvdb["itemCsv"][itemId] - if itemData.quality == 4 then ssrCount = ssrCount + 1 ssrUpCount = 0 -- libgit2 0.21.2