fix(技能系统): 修复治疗和护盾效果不触发的问题并调整技能配置
修改SACastSystem中add_hp和add_shield方法的参数,使治疗和护盾效果能够正确触发 调整技能6102和6103的配置,包括冷却时间和buff类型
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user