diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index 84af0b2..a0fec82 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -577,8 +577,13 @@ function _M.storyBookRewardRpc(agent, data) local storyBookData = csvdb["story_bookCsv"][storyId] if not storyBookData then return end local storyStatus = role:getProperty("storyB") + + if not storyStatus[storyId] or not storyStatus[storyId].s or storyStatus[storyId].s ~= 1 then - return + if storyBookData.unlockType == 1 and role:getProperty("hangInfo").carbonId == tonumber(storyBookData.unlockData) then -- 挂机剧情正在挂机也可以领奖 + else + return + end end -- 获取奖励 storyStatus[storyId].s = -1 -- libgit2 0.21.2