From a3a8c61b74de0b4918043ee74d21e7eef54001f3 Mon Sep 17 00:00:00 2001 From: pan Date: Wed, 3 Jun 2026 14:45:35 +0800 Subject: [PATCH] fix(map): adjust card info node display logic set info node hidden for hero cards and visible for skill cards --- assets/script/game/map/CardComp.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/script/game/map/CardComp.ts b/assets/script/game/map/CardComp.ts index fc4af4f3..148d9e44 100644 --- a/assets/script/game/map/CardComp.ts +++ b/assets/script/game/map/CardComp.ts @@ -698,6 +698,8 @@ export class CardComp extends CCComp { this.ap_node.active = true; this.hp_node.active = true; + // 英雄卡:隐藏技能信息节点 + if (this.info_node) this.info_node.active = false; } else if (this.card_type === CardType.Skill) { if (this.lvl_node) this.lvl_node.node.active = false; // 技能卡:显示技能名 + 品质后缀 + 描述 @@ -709,6 +711,8 @@ export class CardComp extends CCComp { this.ap_node.active = false; this.hp_node.active = false; + // 技能卡:显示技能信息节点 + if (this.info_node) this.info_node.active = true; } else { if (this.lvl_node) this.lvl_node.node.active = false; // 特殊卡(升级 / 刷新):显示卡名 + 品质后缀 + 描述