Commit 4c7d396c10bb21ca770265542d41f4677ace0696
1 parent
3efc352e
不回复 更改看板娘
Showing
2 changed files
with
3 additions
and
4 deletions
Show diff stats
src/ProtocolCode.lua
src/actions/HeroAction.lua
| ... | ... | @@ -941,19 +941,18 @@ function _M.unlockPoolRpc(agent, data) |
| 941 | 941 | return true |
| 942 | 942 | end |
| 943 | 943 | |
| 944 | -function _M.changeCrownRpc(agnet, data) | |
| 944 | +function _M.changeCrown(agnet, data) | |
| 945 | 945 | local role = agent.role |
| 946 | 946 | local msg = MsgPack.unpack(data) |
| 947 | 947 | |
| 948 | 948 | local heroType = msg.heroType |
| 949 | 949 | |
| 950 | - if not role:isHaveHero(heroType) then return end | |
| 950 | + if not role:isHaveHero(heroType) then return true end | |
| 951 | 951 | role:setProperty("crown", heroType) |
| 952 | 952 | |
| 953 | 953 | role:log("hero_show", { |
| 954 | 954 | hero_id = heroType, |
| 955 | 955 | }) |
| 956 | - SendPacket(actionCodes.Hero_changeCrownRpc, "") | |
| 957 | 956 | return true |
| 958 | 957 | end |
| 959 | 958 | ... | ... |