Commit 17ba67dd22d80b11c4da639527a686169733e915
1 parent
5f18f4e5
错误的判断
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
src/actions/RoleAction.lua
... | ... | @@ -578,8 +578,11 @@ function _M.storyBookRewardRpc(agent, data) |
578 | 578 | if not storyBookData then return end |
579 | 579 | local storyStatus = role:getProperty("storyB") |
580 | 580 | |
581 | + local status = (storyStatus[storyId] or {}).s | |
581 | 582 | |
582 | - if not storyStatus[storyId] or not storyStatus[storyId].s or storyStatus[storyId].s ~= 1 then | |
583 | + if status == -1 then return end | |
584 | + | |
585 | + if not status or status ~= 1 then | |
583 | 586 | if storyBookData.unlockType == 1 and role:getProperty("hangInfo").carbonId == tonumber(storyBookData.unlockData) then -- 挂机剧情正在挂机也可以领奖 |
584 | 587 | else |
585 | 588 | return | ... | ... |