diff --git a/src/actions/HeroAction.lua b/src/actions/HeroAction.lua index 4e4b833..0b6699b 100644 --- a/src/actions/HeroAction.lua +++ b/src/actions/HeroAction.lua @@ -996,7 +996,7 @@ function _M.drawHeroRpc(agent, data) local even = repayHeroMaxCount % 2 local id = 0 if even == 1 then - id = math.randWeight(csvdb["build_giftCsv"], "pool_1") + id = math.randWeight(csvdb["build_giftCsv"], "pool_"..feedbackId) else local giftHeroSet = {} for gid, cfg in pairs(csvdb["build_giftCsv"]) do @@ -1009,7 +1009,7 @@ function _M.drawHeroRpc(agent, data) end end if id == 0 then - id = math.randWeight(csvdb["build_giftCsv"], "pool_1") + id = math.randWeight(csvdb["build_giftCsv"], "pool_"..feedbackId) end local r,change = {} -- libgit2 0.21.2