From 36f26bdb4bb7fff1e6b7187e152655e13f494d76 Mon Sep 17 00:00:00 2001 From: chenyueqi Date: Wed, 28 Apr 2021 22:10:10 +0800 Subject: [PATCH] 招募附赠奖励代码移到for循环外 --- src/actions/HeroAction.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/HeroAction.lua b/src/actions/HeroAction.lua index 996c7e1..732bcea 100644 --- a/src/actions/HeroAction.lua +++ b/src/actions/HeroAction.lua @@ -1011,7 +1011,6 @@ function _M.drawHeroRpc(agent, data) for tId, tCount in pairs(unitData.build_award:toNumMap()) do drawAddReward[tId] = (drawAddReward[tId] or 0) + tCount end - role:award(drawAddReward, {log = {desc = "drawHero", int1 = btype}}) end -- @@ -1019,6 +1018,7 @@ function _M.drawHeroRpc(agent, data) role:checkTaskEnter("DrawHeroLimitPack", {count = dailyDrawCnt}) end + role:award(drawAddReward, {log = {desc = "drawHero", int1 = btype}}) role.dailyData:setProperty("drawHeroCnt", dailyDrawCnt) if draw_floor_back_counts then -- libgit2 0.21.2