Commit 4993ba1cfed90199f1b1a77afdb1060e8dcde110
Merge branch 'develop' into player
Showing
2 changed files
with
5 additions
and
5 deletions
Show diff stats
src/GlobalVar.lua
src/actions/AdvAction.lua
@@ -454,13 +454,13 @@ function _M.chooseArtifactRpc(agent, data) | @@ -454,13 +454,13 @@ function _M.chooseArtifactRpc(agent, data) | ||
454 | local role = agent.role | 454 | local role = agent.role |
455 | local msg = MsgPack.unpack(data) | 455 | local msg = MsgPack.unpack(data) |
456 | 456 | ||
457 | - if not isCanContinue(role) then return end | 457 | + if not isCanContinue(role) then return 1 end |
458 | 458 | ||
459 | local adv = role:getAdvData() | 459 | local adv = role:getAdvData() |
460 | - if not msg.idx then return end | ||
461 | - if not adv:isWaitChooseArtifact() then return end | 460 | + if not msg.idx then return 2 end |
461 | + if not adv:isWaitChooseArtifact() then return 3 end | ||
462 | local status = adv:chooseArtifact(msg.idx) | 462 | local status = adv:chooseArtifact(msg.idx) |
463 | - if not status then return end | 463 | + if not status then return 4 end |
464 | adv:saveDB() | 464 | adv:saveDB() |
465 | 465 | ||
466 | SendPacket(actionCodes.Adv_chooseArtifactRpc, '') | 466 | SendPacket(actionCodes.Adv_chooseArtifactRpc, '') |