From f72f32b7812e5d3f4931f4ae67adbb8d3dbf199d Mon Sep 17 00:00:00 2001 From: chenyueqi Date: Tue, 6 Apr 2021 16:26:28 +0800 Subject: [PATCH] 时间礼包返回奖励 --- src/actions/RoleAction.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index 1f5cb59..a88e474 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -1544,7 +1544,7 @@ function _M.getTimeGiftRpc(agent, data) local reward, change = role:award(gift.gift, {log = {desc = "giftTime", int1 = nextL}}) role:mylog("role_action", {desc = "giftTime", int1 = nextL}) - SendPacket(actionCodes.Role_getTimeGiftRpc, MsgPack.pack(reward, change)) + SendPacket(actionCodes.Role_getTimeGiftRpc, MsgPack.pack(role:packReward(reward, change))) return true end -- libgit2 0.21.2