Commit 064ca7159473981fb84adb48508b5e8c093462d7
1 parent
43611d57
抽卡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 | 884 | end |
| 885 | 885 | end |
| 886 | 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 | 893 | end |
| 892 | 894 | end |
| 893 | 895 | if not ok then break end | ... | ... |