diff --git a/assets/resources/game/skill/buff/shielded.prefab b/assets/resources/game/skill/buff/shielded.prefab index 1f52b039..1eac2b6f 100644 --- a/assets/resources/game/skill/buff/shielded.prefab +++ b/assets/resources/game/skill/buff/shielded.prefab @@ -37,7 +37,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": 40, + "y": -2.025, "z": 0 }, "_lrot": { diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index 221ffe70..129d50ea 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -141,9 +141,12 @@ export class HeroViewComp extends CCComp { if (this.model.dirty_shield) { this.topBar.shieldShow(this.model.shield); - // 护盾耗尽时隐藏护盾特效 if (this.model.shield <= 0) { + // 护盾耗尽时隐藏护盾特效 this.hideShieldFx(); + } else { + // 护盾存在时显示常驻特效(内部有 isValid 防重复,不会重复创建) + this.showShieldFx(); } this.model.dirty_shield = false; }