refactor(英雄技能): 重构天赋触发逻辑和技能施放系统
- 将HeroAttrsComp中的isDSill和isWFuny改为talTrigger结构体 - 移除TalComp中不再使用的checkTriggers和checkIsTrigger方法 - 优化SACastSystem中的技能施放逻辑,分离天赋处理代码块 - 为Skill.load方法添加damage参数 - 重命名executeCast返回变量为castSucess以提高可读性
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user