diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index c444693c..adf97882 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -104,10 +104,9 @@ export class HeroViewComp extends CCComp { /* 显示角色血*/ this.top_node.getChildByName("hp").active = true; - // 🔥 怪物不显示蓝条 - if (this.model) { - this.top_node.getChildByName("mp").active = this.model.fac === FacSet.HERO; - } + + this.top_node.getChildByName("mp").active = false + this.top_node.getChildByName("shield").active = false; // 初始隐藏血条(有更新时才显示) this.top_node.active = false; @@ -160,10 +159,10 @@ export class HeroViewComp extends CCComp { this.model.dirty_hp = false; } - if (this.model.dirty_mp) { - this.mp_show(); - this.model.dirty_mp = false; - } + // if (this.model.dirty_mp) { + // this.mp_show(); + // this.model.dirty_mp = false; + // } if (this.model.dirty_shield) { this.show_shield(this.model.shield, this.model.Attrs[Attrs.SHIELD_MAX]);