diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index 6eaa3846..85011a22 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -112,6 +112,11 @@ export class HeroViewComp extends CCComp { this.top_node.getChildByName("shield").active = false; // 初始隐藏血条(有更新时才显示) this.top_node.active = false; + + // 🔥 重置血条 UI 显示状态 + if (this.model) { + this.hp_show(); + } } /** 初始化 UI 节点引用 */