Commit ffb897e9c457dc7cd703048d03aabde054b880d4
1 parent
007e3c41
免费次数记录错误
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/actions/HangAction.lua
... | ... | @@ -970,8 +970,8 @@ function _M.endWorkBattleRpc(agent, data) |
970 | 970 | local workBattle = role:getProperty("workBattle") |
971 | 971 | workBattle[bonusData.type] = workBattle[bonusData.type] or 0 |
972 | 972 | local needCount = 1 - (workBattle[bonusData.type] == 0 and 1 or 0) |
973 | - if workBattle[1] == 0 then | |
974 | - workBattle[1] = 1 | |
973 | + if workBattle[bonusData.type] == 0 then | |
974 | + workBattle[bonusData.type] = 1 | |
975 | 975 | role:updateProperty({field = "workBattle", value = workBattle}) |
976 | 976 | end |
977 | 977 | if needCount > 0 then | ... | ... |