From 7b69700f14a065dac965d1dceb42fbd692cf6d4e Mon Sep 17 00:00:00 2001 From: walkpan Date: Fri, 2 Jan 2026 15:19:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=8B=B1=E9=9B=84=E8=A7=86=E5=9B=BE):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=80=AA=E7=89=A9=E6=98=BE=E7=A4=BA=E8=93=9D?= =?UTF-8?q?=E6=9D=A1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根据角色阵营决定是否显示蓝条,仅英雄角色显示 --- assets/script/game/hero/HeroViewComp.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index 033682fd..798e1767 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -102,7 +102,8 @@ export class HeroViewComp extends CCComp { // } /* 显示角色血*/ this.top_node.getChildByName("hp").active = true; - this.top_node.getChildByName("mp").active = true; + // 🔥 怪物不显示蓝条 + this.top_node.getChildByName("mp").active = this.model.fac === FacSet.HERO; this.top_node.getChildByName("shield").active = false; // 初始隐藏血条(被攻击后才显示) this.top_node.active = true;