From bad49c2a66eb66b796291b75518a266bc6c9a5f0 Mon Sep 17 00:00:00 2001 From: liuzujun Date: Wed, 22 Sep 2021 15:57:34 +0800 Subject: [PATCH] 去除重复领取剧情奖励报错 11402 --- src/actions/RoleAction.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index 5422646..2ab440c 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -887,7 +887,10 @@ function _M.storyBookRewardRpc(agent, data) local status = (storyStatus[storyId] or {}).s - if status == -1 then return 2 end + if status == -1 then + SendPacket(actionCodes.Role_storyBookRewardRpc, "") + return true + end if not status or status ~= 1 then --if storyBookData.unlockType == 1 and (role:getProperty("hangInfo").carbonId == tonumber(storyBookData.unlockData) or storyId == 1 or storyId == 2) then -- 挂机剧情正在挂机也可以领奖 -- libgit2 0.21.2