Commit b67cfabdfc4c98ea8a6602650ad52ae30d694a24

Authored by suhongyang
1 parent 0f2a905e

Fix name

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