refactor(英雄技能): 重构天赋触发逻辑和技能施放系统

- 将HeroAttrsComp中的isDSill和isWFuny改为talTrigger结构体
- 移除TalComp中不再使用的checkTriggers和checkIsTrigger方法
- 优化SACastSystem中的技能施放逻辑,分离天赋处理代码块
- 为Skill.load方法添加damage参数
- 重命名executeCast返回变量为castSucess以提高可读性
This commit is contained in:
2025-11-19 16:03:19 +08:00
parent e577ed976c
commit bcaa377cf6
4 changed files with 27 additions and 71 deletions

View File

@@ -29,7 +29,7 @@ export class Skill extends ecs.Entity {
this.addComponents<SMoveDataComp>(SMoveDataComp);
}
load(startPos: Vec3, parent: Node, s_uuid: number, targetPos: Vec3,
caster:HeroViewComp) {
caster:HeroViewComp,damage:number=0) {
const config = SkillSet[s_uuid];
if (!config) {