Commit 43611d5719e949c996f28ac51a9c52659bf22f54

Authored by liuzujun
1 parent aa4838cb

抽卡up失败走全随机,随机池把up角色剔除

Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
src/actions/HeroAction.lua
... ... @@ -883,6 +883,13 @@ function _M.drawHeroRpc(agent, data)
883 883 if heroData[field] ~= values[idx] then ok = false break end
884 884 end
885 885 end
  886 + -- 随机剔除up池中的角色
  887 + for k, v in ipairs(up_pool) do
  888 + if v == itemData.id then
  889 + ok = false
  890 + break
  891 + end
  892 + end
886 893 if not ok then break end
887 894 if oneData[pool_str] > 0 then
888 895 resultPool[itemId] = {oneData[pool_str]} -- itemId, count, 概率
... ...