diff --git a/src/actions/AdvAction.lua b/src/actions/AdvAction.lua index 675c4b1..2c24597 100644 --- a/src/actions/AdvAction.lua +++ b/src/actions/AdvAction.lua @@ -454,13 +454,13 @@ function _M.chooseArtifactRpc(agent, data) local role = agent.role local msg = MsgPack.unpack(data) - if not isCanContinue(role) then return end + if not isCanContinue(role) then return 1 end local adv = role:getAdvData() - if not msg.idx then return end - if not adv:isWaitChooseArtifact() then return end + if not msg.idx then return 2 end + if not adv:isWaitChooseArtifact() then return 3 end local status = adv:chooseArtifact(msg.idx) - if not status then return end + if not status then return 4 end adv:saveDB() SendPacket(actionCodes.Adv_chooseArtifactRpc, '') -- libgit2 0.21.2