Commit 7125137e983d5a27d44789009da34ae5c811f986
1 parent
40dd5057
手抽英雄只奖励一个
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] |