Commit c8c76cda5f24e0383e9edbdbb7194fab75a2a507

Authored by liuzujun
1 parent cb8d4368

活动卡池保底出指定英雄

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/actions/HeroAction.lua
... ... @@ -996,7 +996,7 @@ function _M.drawHeroRpc(agent, data)
996 996 local even = repayHeroMaxCount % 2
997 997 local id = 0
998 998 if even == 1 then
999   - id = math.randWeight(csvdb["build_giftCsv"], "pool_1")
  999 + id = math.randWeight(csvdb["build_giftCsv"], "pool_"..feedbackId)
1000 1000 else
1001 1001 local giftHeroSet = {}
1002 1002 for gid, cfg in pairs(csvdb["build_giftCsv"]) do
... ... @@ -1009,7 +1009,7 @@ function _M.drawHeroRpc(agent, data)
1009 1009 end
1010 1010 end
1011 1011 if id == 0 then
1012   - id = math.randWeight(csvdb["build_giftCsv"], "pool_1")
  1012 + id = math.randWeight(csvdb["build_giftCsv"], "pool_"..feedbackId)
1013 1013 end
1014 1014  
1015 1015 local r,change = {}
... ...