Commit bb10924f186da55d0e93036a8885baff3054220b
1 parent
84c2734c
10连保底使用池子全随机
Showing
2 changed files
with
6 additions
and
3 deletions
Show diff stats
src/actions/HeroAction.lua
... | ... | @@ -788,8 +788,11 @@ function _M.drawHeroRpc(agent, data) |
788 | 788 | local heroData = csvdb["unitCsv"][itemData.id - ItemStartId.Hero] |
789 | 789 | if not heroData then break end |
790 | 790 | local ok = true |
791 | - for idx, field in ipairs(condition) do | |
792 | - if heroData[field] ~= values[idx] then ok = false break end | |
791 | + -- 保底是全随机,不用比较类型 | |
792 | + if not isFloorBack then | |
793 | + for idx, field in ipairs(condition) do | |
794 | + if heroData[field] ~= values[idx] then ok = false break end | |
795 | + end | |
793 | 796 | end |
794 | 797 | if not ok then break end |
795 | 798 | if oneData[pool_str] > 0 then | ... | ... |