diff --git a/src/ProtocolCode.lua b/src/ProtocolCode.lua index c0e2b7f..9da88ab 100644 --- a/src/ProtocolCode.lua +++ b/src/ProtocolCode.lua @@ -90,6 +90,7 @@ actionCodes = { Hero_drawHeroRpc = 220, Hero_repayHeroRpc = 221, Hero_unlockPoolRpc = 222, + Hero_changeCrownRpc = 223, Hang_startRpc = 251, Hang_checkRpc = 252, diff --git a/src/actions/HeroAction.lua b/src/actions/HeroAction.lua index c4a7dc7..068c521 100644 --- a/src/actions/HeroAction.lua +++ b/src/actions/HeroAction.lua @@ -453,7 +453,7 @@ function _M.referEquipsRpc(agent, data) local hero = role.heros[msg.id] if not hero then return 10 end local equips = msg.equips - local isAuto = msg.isAuth + local isAuto = msg.isAuto if not equips or not next(equips) then return 11 end for typ = 1, 4 do -- 4件装备 -- libgit2 0.21.2