diff --git a/lua/app/module/hero/hero_manager.lua b/lua/app/module/hero/hero_manager.lua index 774e4df0..ea72ee42 100644 --- a/lua/app/module/hero/hero_manager.lua +++ b/lua/app/module/hero/hero_manager.lua @@ -100,9 +100,9 @@ function HeroManager:getSkillRogueBattleBg(skillId) return cfg and "battle_board_" .. cfg.qlt end -function HeroManager:getSkillRogueBg(skillId) +function HeroManager:getSkillRogueBg(skillId, onlyQlt) local cfg = ConfigManager:getConfig("skill_rogue")[skillId] - if cfg.skill_position then -- 解锁技能类型 + if cfg.skill_position and not onlyQlt then -- 解锁技能类型 return "frame_skill_0" end return cfg and "frame_" .. cfg.qlt diff --git a/lua/app/ui/hero/hero_detail_ui.lua b/lua/app/ui/hero/hero_detail_ui.lua index 65554468..dc41d5b0 100644 --- a/lua/app/ui/hero/hero_detail_ui.lua +++ b/lua/app/ui/hero/hero_detail_ui.lua @@ -61,7 +61,7 @@ function HeroDetailUI:_display() skillBg:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, "frame_0") else skillLv:setText(GConst.EMPTY_STRING) - skillBg:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, ModuleManager.HeroManager:getSkillRogueBg(skillId)) + skillBg:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, ModuleManager.HeroManager:getSkillRogueBg(skillId, true)) end end end