Commit b67cfabdfc4c98ea8a6602650ad52ae30d694a24
1 parent
0f2a905e
Fix name
Showing
3 changed files
with
4 additions
and
4 deletions
Show diff stats
src/ProtocolCode.lua
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 | ... | ... |