diff --git a/assets/script/game/map/HInfoComp.ts b/assets/script/game/map/HInfoComp.ts index 1fd7d0f3..1faed59b 100644 --- a/assets/script/game/map/HInfoComp.ts +++ b/assets/script/game/map/HInfoComp.ts @@ -156,9 +156,15 @@ export class HInfoComp extends CCComp { const heroUuid = this.previewUuid; const heroLv = Math.max(1, this.previewLv); + // 技能卡无等级概念,隐藏等级节点;英雄卡显示等级 if (this.lv_node) { - this.lv_node.string = `Lv.${heroLv}`; - this.lv_node.color = getLvColor(heroLv); + if (this.isSkillCard) { + this.lv_node.node.active = false; + } else { + this.lv_node.node.active = true; + this.lv_node.string = `Lv.${heroLv}`; + this.lv_node.color = getLvColor(heroLv); + } } const kindName = this.isSkillCard ? CKind[CKind.Skill] : CKind[CKind.Hero];