Commit b67cfabdfc4c98ea8a6602650ad52ae30d694a24

Authored by suhongyang
1 parent 0f2a905e

Fix name

src/ProtocolCode.lua
... ... @@ -33,7 +33,7 @@ actionCodes = {
33 33 Adv_useSkillRpc = 155,
34 34 Adv_exitAdvRpc = 156,
35 35 Adv_nextTurnRpc = 157,
36   - Adv_battleSkillRpc = 158,
  36 + Adv_specialSkillRpc = 158,
37 37  
38 38 Hero_loadInfos = 201,
39 39 Hero_updateProperty = 202,
... ...
src/actions/AdvAction.lua
... ... @@ -87,11 +87,11 @@ function _M.useSkillRpc(agent, data)
87 87 end
88 88  
89 89 --使用战斗技能
90   -function _M.battleSkillRpc(agent, data)
  90 +function _M.specialSkillRpc(agent, data)
91 91 local role = agent.role
92 92 local msg = MsgPack.unpack(data)
93 93 local adv = role:getAdvData()
94   - local status = adv:releaseBattleSkill(msg.skillId)
  94 + local status = adv:useSpecialSkill(msg.skillId)
95 95 if not status then return end
96 96 SendPacket(actionCodes.Adv_useSkillRpc, MsgPack.pack({events = {}}))
97 97 return true
... ...
src/adv/Adv.lua
... ... @@ -971,7 +971,7 @@ function Adv:useSkill(skillId, target)
971 971 end
972 972  
973 973 --使用战斗技能
974   -function Adv:releaseBattleSkill(skillId)
  974 +function Adv:useSpecialSkill(skillId)
975 975 if not csvdb["adv_skill_specialCsv"][skillId] or self.battle:isBattleEnd() then return end
976 976 local skillLevel = nil
977 977 for slot, heroId in pairs(self.advTeam.heros) do
... ...