Commit 36f26bdb4bb7fff1e6b7187e152655e13f494d76
1 parent
9fa1417d
招募附赠奖励代码移到for循环外
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/actions/HeroAction.lua
... | ... | @@ -1011,7 +1011,6 @@ function _M.drawHeroRpc(agent, data) |
1011 | 1011 | for tId, tCount in pairs(unitData.build_award:toNumMap()) do |
1012 | 1012 | drawAddReward[tId] = (drawAddReward[tId] or 0) + tCount |
1013 | 1013 | end |
1014 | - role:award(drawAddReward, {log = {desc = "drawHero", int1 = btype}}) | |
1015 | 1014 | end |
1016 | 1015 | -- |
1017 | 1016 | |
... | ... | @@ -1019,6 +1018,7 @@ function _M.drawHeroRpc(agent, data) |
1019 | 1018 | role:checkTaskEnter("DrawHeroLimitPack", {count = dailyDrawCnt}) |
1020 | 1019 | end |
1021 | 1020 | |
1021 | + role:award(drawAddReward, {log = {desc = "drawHero", int1 = btype}}) | |
1022 | 1022 | role.dailyData:setProperty("drawHeroCnt", dailyDrawCnt) |
1023 | 1023 | |
1024 | 1024 | if draw_floor_back_counts then | ... | ... |