diff --git a/src/actions/HeroAction.lua b/src/actions/HeroAction.lua index 3166c6e..c4a7dc7 100644 --- a/src/actions/HeroAction.lua +++ b/src/actions/HeroAction.lua @@ -788,8 +788,11 @@ function _M.drawHeroRpc(agent, data) local heroData = csvdb["unitCsv"][itemData.id - ItemStartId.Hero] if not heroData then break end local ok = true - for idx, field in ipairs(condition) do - if heroData[field] ~= values[idx] then ok = false break end + -- 保底是全随机,不用比较类型 + if not isFloorBack then + for idx, field in ipairs(condition) do + if heroData[field] ~= values[idx] then ok = false break end + end end if not ok then break end if oneData[pool_str] > 0 then diff --git a/src/csvdata b/src/csvdata index ec72516..b026265 160000 --- a/src/csvdata +++ b/src/csvdata @@ -1 +1 @@ -Subproject commit ec72516d421103deb40278fc734cb0a5cea64689 +Subproject commit b026265df3a1755bad4a83630d7457b790232b3e -- libgit2 0.21.2