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