diff --git a/assets/script/game/hero/SCastSystem.ts b/assets/script/game/hero/SCastSystem.ts index 002c3cef..ff3f1dfc 100644 --- a/assets/script/game/hero/SCastSystem.ts +++ b/assets/script/game/hero/SCastSystem.ts @@ -2,7 +2,7 @@ import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ec import { Vec3 } from "cc"; import { HeroAttrsComp } from "./HeroAttrsComp"; import { HeroViewComp } from "./HeroViewComp"; -import { DTType, SkillConfig, SkillKind, SkillSet, SkillUpList, TGroup } from "../common/config/SkillSet"; +import { DTType, RType, SkillConfig, SkillKind, SkillSet, SkillUpList, TGroup } from "../common/config/SkillSet"; import { Skill } from "../skill/Skill"; import { smc } from "../common/SingletonModuleComp"; import { HType } from "../common/config/heroSet"; @@ -375,6 +375,9 @@ export class SCastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate * - 范围技能:优先前排敌人位置 */ private resolveEnemyCastTargetPos(config: SkillConfig, heroAttrs: HeroAttrsComp, heroView: HeroViewComp, nearestEnemy: HeroViewComp, maxRange: number): Vec3 | null { + if (config.RType === RType.bezier) { + return nearestEnemy.node?.position.clone() ?? null; + } if (config.DTType !== DTType.range) { return this.buildEnemyCastTargetPos(heroView, nearestEnemy, maxRange); } diff --git a/assets/script/game/skill/SMoveComp.ts b/assets/script/game/skill/SMoveComp.ts index f4ee9acc..30ae18ef 100644 --- a/assets/script/game/skill/SMoveComp.ts +++ b/assets/script/game/skill/SMoveComp.ts @@ -65,7 +65,7 @@ export class SMoveDataComp extends ecs.Comp { /** 贝塞尔曲线控制点 */ controlPoint: Vec3 = v3(0, 0, 0); - bezierStartHeight: number = 18; + bezierStartHeight: number = 25; bezierMidHeight: number = 140; bezierArc: number = 1;