refactor(hero): 移除旧版控制buff计时系统,统一用buff管理
完成全量buff系统迁移,删除HeroBuffSystem和旧的计时字段, 所有冰冻/眩晕控制效果改为通过BuffManager管理, 简化了控制状态判定逻辑,移除了新旧系统兼容代码
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user