Commit a1d09d2251f9e968a4a423f9d9ae10c0a6f41821
1 parent
1c3053c3
bug
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
src/actions/RoleAction.lua
... | ... | @@ -319,8 +319,10 @@ function _M.storyBookRewardRpc(agent, data) |
319 | 319 | local storyId = msg.id |
320 | 320 | local storyBookData = csvdb["story_bookCsv"][storyId] |
321 | 321 | if not storyBookData then return end |
322 | - local storyStatus = self:getProperty("storyB") | |
323 | - if not storyStatus[id] or not storyStatus[id].s or storyStatus[id].s ~= 1 then return end | |
322 | + local storyStatus = role:getProperty("storyB") | |
323 | + if not storyStatus[id] or not storyStatus[id].s or storyStatus[id].s ~= 1 then | |
324 | + return | |
325 | + end | |
324 | 326 | |
325 | 327 | -- 获取奖励 |
326 | 328 | storyStatus[id].s = -1 | ... | ... |