From ba3e8ad16dea6b3c8c18237365a50094c0f8a88e Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Tue, 17 Jun 2025 21:00:07 +0800 Subject: [PATCH] fix bug --- lua/app/userdata/hero/hero_entity.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lua/app/userdata/hero/hero_entity.lua b/lua/app/userdata/hero/hero_entity.lua index 2cf5eb06..712b632a 100644 --- a/lua/app/userdata/hero/hero_entity.lua +++ b/lua/app/userdata/hero/hero_entity.lua @@ -289,10 +289,10 @@ function HeroEntity:canLvUp(showToast) if not GFunc.checkCost(self:getFragmentId(), fragmentCost, showToast) then return false, GConst.HeroConst.CHECK_LV_UP_STATE.FRAGMENT_NOT_ENOUGH end - local goldCost = cost[2] or 0 - if not GFunc.checkCost(GConst.ItemConst.ITEM_ID_GOLD, goldCost, showToast) then - return false, GConst.HeroConst.CHECK_LV_UP_STATE.COIN_NOT_ENOUGH - end + -- local goldCost = cost[2] or 0 + -- if not GFunc.checkCost(GConst.ItemConst.ITEM_ID_GOLD, goldCost, showToast) then + -- return false, GConst.HeroConst.CHECK_LV_UP_STATE.COIN_NOT_ENOUGH + -- end return true, GConst.HeroConst.CHECK_LV_UP_STATE.SUCCESS end @@ -413,8 +413,7 @@ function HeroEntity:getRogueSkillList() local ids = self.config["rouge_skill_" .. count] if ids then for i = #ids, 1, -1 do - -- if self.data.lv >= ids[i][1] or i == 1 then - if self.data.lv >= ids[i][1]then + if self.data.lv >= ids[i][1] or i == 1 then table.insert(self.rogueSkillList, ids[i]) break end