Commit cfa30cf8ec371f6c74bd6faee9facb59105dde80
Merge branch 'tr/bugfix' into tr/publish/preview
* 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] |