refactor(hero): 移除旧版控制buff计时系统,统一用buff管理

完成全量buff系统迁移,删除HeroBuffSystem和旧的计时字段,
所有冰冻/眩晕控制效果改为通过BuffManager管理,
简化了控制状态判定逻辑,移除了新旧系统兼容代码
This commit is contained in:
panFD
2026-07-23 21:07:38 +08:00
parent ee7c0ea69c
commit 2876108970
4 changed files with 30 additions and 141 deletions

View File

@@ -200,14 +200,14 @@ export class HeroAtkSystem extends ecs.ComblockSystem implements ecs.ISystemUpda
targetView.playEnd(skillConf.endAnm);
if (isFrost) {
TAttrsComp.toFrost();
targetView.in_iced(TAttrsComp.frost_end_time);
targetView.in_iced(FightSet.FROST_TIME);
if (damageEvent.Attrs.fac === FacSet.HERO) {
smc.vmdata.scores.freeze_count++;
}
}
if (isStun) {
TAttrsComp.toStun();
targetView.in_stun(TAttrsComp.stun_end_time);
targetView.in_stun(FightSet.STUN_TIME);
if (damageEvent.Attrs.fac === FacSet.HERO) {
smc.vmdata.scores.stun_count++;
}