diff --git a/src/actions/HeroAction.lua b/src/actions/HeroAction.lua index 79b814a..49a0ab2 100644 --- a/src/actions/HeroAction.lua +++ b/src/actions/HeroAction.lua @@ -883,6 +883,13 @@ function _M.drawHeroRpc(agent, data) if heroData[field] ~= values[idx] then ok = false break end end end + -- 随机剔除up池中的角色 + for k, v in ipairs(up_pool) do + if v == itemData.id then + ok = false + break + end + end if not ok then break end if oneData[pool_str] > 0 then resultPool[itemId] = {oneData[pool_str]} -- itemId, count, 概率 -- libgit2 0.21.2