fix(技能): 修复治疗技能未正确触发目标生命值显示的问题

修改 HeroAttrsComp.add_hp 方法使其返回实际治疗值,并在 SCastSystem 中调用目标 health 方法更新显示
This commit is contained in:
walkpan
2026-03-19 19:38:56 +08:00
parent a08cca9cc3
commit 4c29d6942a
2 changed files with 4 additions and 2 deletions

View File

@@ -106,6 +106,7 @@ export class HeroAttrsComp extends ecs.Comp {
if (this.debugMode) {
mLogger.log(this.debugMode, 'HeroAttrs', ` HP变更: ${this.hero_name}, 变化=${addValue.toFixed(1)}, ${oldHp.toFixed(1)} -> ${this.hp.toFixed(1)}`);
}
return addValue;
}
add_shield(value:number,isValue:boolean){