From a22cbe634e6342dff11e69c57ee0010f3ed7e5ba Mon Sep 17 00:00:00 2001 From: zhouahaihai Date: Mon, 3 Dec 2018 19:49:22 +0800 Subject: [PATCH] bug --- src/actions/HeroAction.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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