fix(技能系统): 修复治疗和护盾效果不触发的问题并调整技能配置

修改SACastSystem中add_hp和add_shield方法的参数,使治疗和护盾效果能够正确触发
调整技能6102和6103的配置,包括冷却时间和buff类型
This commit is contained in:
walkpan
2026-01-01 15:06:50 +08:00
parent a156ddfc2f
commit fa0c6dbf94
2 changed files with 5 additions and 5 deletions

View File

@@ -493,7 +493,7 @@ export class SACastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdat
const targetView = targetEntity.get(HeroViewComp);
if (!targetAttrs || !targetView) continue;
targetAttrs.add_hp(healAmount, false);
targetAttrs.add_hp(healAmount, true);
targetView.health(healAmount);
console.log(`[SACastSystem] 治疗生效: 施法者=${casterEntity.get(HeroAttrsComp)?.hero_name}, 技能=${config.name}, 目标=${targetAttrs.hero_name}, 治疗量=${healAmount}`);
}
@@ -522,7 +522,7 @@ export class SACastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdat
const targetView = targetEntity.get(HeroViewComp);
if (!targetAttrs || !targetView) continue;
targetAttrs.add_shield(shieldAmount, false);
targetAttrs.add_shield(shieldAmount, true);
targetView.add_shield(shieldAmount);
console.log(`[SACastSystem] 护盾生效: 施法者=${casterEntity.get(HeroAttrsComp)?.hero_name}, 技能=${config.name}, 目标=${targetAttrs.hero_name}, 护盾量=${shieldAmount}`);
}