diff --git a/src/actions/HeroAction.lua b/src/actions/HeroAction.lua index 7cc2829..7a2a593 100644 --- a/src/actions/HeroAction.lua +++ b/src/actions/HeroAction.lua @@ -75,7 +75,7 @@ function _M.skillUpRpc(agent, data) local hero = role.heros[msg.id] if not hero then return end local curLevel = hero:getSkillLevel(index) - if hero:getLSPoint() < 0 or curLevel >= #hero:getSkillData(index) then return end + if hero:getLSPoint() <= 0 or curLevel >= #hero:getSkillData(index) then return end hero:updateProperty({field = "skillL", value = hero:getProperty("skillL"):setv(index, curLevel + 1)}) SendPacket(actionCodes.Hero_skillUpRpc, '') -- libgit2 0.21.2