feat: 新增麻痹控制机制,优化击晕与技能CD逻辑

1.  新增麻痹控制相关属性、buff配置与逻辑实现
2.  调整击晕时长与CD削减机制,优化技能CD更新逻辑
3.  修正多个技能预制件的参数与动画配置
4.  扩展控制类型检测与游戏配置项
This commit is contained in:
pan
2026-08-19 16:40:10 +08:00
parent d6e8cb4828
commit 5585149b12
11 changed files with 109 additions and 49 deletions

View File

@@ -250,9 +250,11 @@ export class SCastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate
const heroView = e.get(HeroViewComp);
if (!heroAttrs || !heroView || !heroView.node) return;
if (this.isOutOfBattleBounds(heroView.node.position.x)) return;
if (heroAttrs.is_dead || heroAttrs.is_reviving || heroAttrs.isFrost()) return;
if (heroAttrs.is_dead || heroAttrs.is_reviving) return;
// 冰冻不影响 CD 值:冰冻/击晕期间 CD 照常刷新(击晕内部停涨),但不允许施法
heroAttrs.updateCD(this.dt);
heroView.cd_show();
if (heroAttrs.isFrost() || heroAttrs.isStun()) return;
const castPlan = this.pickCastSkill(heroAttrs, heroView);
if (!this.hasCastTarget(castPlan)) return;