Commit 5ee7dfa610fe94c50a9f527dcba66fc57b587f3c
Merge branch 'tr/bugfix' into tr/publish/ts
* tr/bugfix: 抽卡up_pool判空
Showing
1 changed file
with
6 additions
and
4 deletions
Show diff stats
src/actions/HeroAction.lua
@@ -884,10 +884,12 @@ function _M.drawHeroRpc(agent, data) | @@ -884,10 +884,12 @@ function _M.drawHeroRpc(agent, data) | ||
884 | end | 884 | end |
885 | end | 885 | end |
886 | -- 随机剔除up池中的角色 | 886 | -- 随机剔除up池中的角色 |
887 | - for k, v in ipairs(up_pool) do | ||
888 | - if v == itemData.id then | ||
889 | - ok = false | ||
890 | - break | 887 | + if up_pool then |
888 | + for k, v in ipairs(up_pool) do | ||
889 | + if v == itemData.id then | ||
890 | + ok = false | ||
891 | + break | ||
892 | + end | ||
891 | end | 893 | end |
892 | end | 894 | end |
893 | if not ok then break end | 895 | if not ok then break end |