aoe技能继续添加

This commit is contained in:
2025-06-20 16:29:11 +08:00
parent 211dd26ca3
commit 6ce9fc4c48
14 changed files with 178 additions and 226 deletions

View File

@@ -1,13 +1,13 @@
// import { Node, UI, UITransform, Vec3 } from "cc";
// import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
// import { HeroViewComp } from "../hero/HeroViewComp";
// import { SkillSet, TargetGroup, TargetType } from "../common/config/SkillSet";
// import { SkillSet, TGroup, TType } from "../common/config/SkillSet";
// import { CdType } from "../common/config/SkillSet";
// import { oops } from "db://oops-framework/core/Oops";
// import { GameEvent } from "../common/config/GameEvent";
// import { Skill } from "../skills/Skill";
// import { SkillCom } from "../skills/SkillCom";
// import { AnimType } from "../common/config/SkillSet";
// import { AType } from "../common/config/SkillSet";
// import { BoxSet } from "../common/config/BoxSet";
@@ -43,17 +43,17 @@
// private castSkill(caster: ecs.Entity, skillId: number, config: typeof SkillSet[keyof typeof SkillSet]) {
// const view = caster.get(HeroViewComp);
// console.log(view.uuid+"=>"+view.hero_name+"施放技能:"+config.uuid);
// if (config.TargetGroup === TargetGroup.Enemy) {
// if (config.TGroup === TGroup.Enemy) {
// caster.get(HeroViewComp).playSkillEffect(config.uuid);
// this.doSkill(caster,config);
// }
// if (config.TargetGroup === TargetGroup.Ally) {
// if (config.TGroup === TGroup.Ally) {
// const targets = this.selectAllyTargets(caster, config);
// if (targets.length === 0) return;
// }
// if (config.TargetGroup === TargetGroup.Self) {
// if (config.TGroup === TGroup.Self) {
// }
@@ -86,14 +86,14 @@
// const team = casterView.fac;
// const candidates= ecs.query(ecs.allOf(HeroViewComp)).filter(e => e.get(HeroViewComp).fac === team);
// // 第二阶段:位置/血量等精细筛选
// switch(config.TargetType) {
// case TargetType.Melee:
// switch(config.TType) {
// case TType.Melee:
// return candidates.filter(e => e.get(HeroViewComp).type === 0);
// case TargetType.Ranged:
// case TType.Ranged:
// return candidates.filter(e => e.get(HeroViewComp).type === 1);
// case TargetType.SupportClass:
// case TType.SupportClass:
// return candidates.filter(e => e.get(HeroViewComp).type === 2);
// case TargetType.Random:
// case TType.Random:
// return this.pickRandomTarget(candidates, config.count || 1);
// default:
// return candidates;