From 0ec27b09a49776b642c3201bbb5500c19ed9f41f Mon Sep 17 00:00:00 2001 From: panFD Date: Wed, 19 Aug 2026 22:51:52 +0800 Subject: [PATCH] fix(skill tooltip): adjust tooltip vertical offset from 30 to 60 fix the issue that skill tooltip might be blocked by health bar --- assets/script/game/skill/TooltipCom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/script/game/skill/TooltipCom.ts b/assets/script/game/skill/TooltipCom.ts index dd746962..676371d3 100644 --- a/assets/script/game/skill/TooltipCom.ts +++ b/assets/script/game/skill/TooltipCom.ts @@ -90,7 +90,7 @@ export class TooltipCom extends CCComp { const topSiblingIndex = 9999; // 临时变量,存储当前Y坐标,方便统一处理。增加60的Y轴基础偏移,防止伤害飘字等遮挡血条 - let currentY = this.node.position.y + 30; + let currentY = this.node.position.y + 60; switch (this.stype) { case TooltipTypes.life: // 普通伤害