Commit acf11d0db5a159f176e6e589612be5667125f3fb
Merge branch 'tr/bugfix' into tr/publish/release
* tr/bugfix: 手抽英雄只奖励一个
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/actions/HeroAction.lua
| @@ -926,6 +926,7 @@ function _M.drawHeroRpc(agent, data) | @@ -926,6 +926,7 @@ function _M.drawHeroRpc(agent, data) | ||
| 926 | local itemId = math.randWeight(resultPool, 1) | 926 | local itemId = math.randWeight(resultPool, 1) |
| 927 | if guideHero then | 927 | if guideHero then |
| 928 | itemId = guideHero | 928 | itemId = guideHero |
| 929 | + guideHero = nil | ||
| 929 | end | 930 | end |
| 930 | 931 | ||
| 931 | local itemData = csvdb["itemCsv"][itemId] | 932 | local itemData = csvdb["itemCsv"][itemId] |