aoe技能继续添加
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { _decorator, Component, Node, Vec3 } from 'cc';
|
||||
import { HeroViewComp } from './HeroViewComp';
|
||||
import { SkillSet, TargetGroup, TargetType } from '../common/config/SkillSet';
|
||||
import { SkillSet, TGroup, TType } from '../common/config/SkillSet';
|
||||
import { Skill } from '../skills/Skill';
|
||||
import { ecs } from 'db://oops-framework/libs/ecs/ECS';
|
||||
import { oops } from 'db://oops-framework/core/Oops';
|
||||
@@ -100,25 +100,25 @@ export class SkillConComp extends CCComp {
|
||||
return;
|
||||
}
|
||||
let targets:any=null
|
||||
switch(config.TargetGroup){
|
||||
case TargetGroup.Enemy: //单个敌人
|
||||
switch(config.TGroup){
|
||||
case TGroup.Enemy: //单个敌人
|
||||
targets = this.filterFrontRow();
|
||||
break
|
||||
case TargetGroup.Ally: //所有敌人
|
||||
case TGroup.Ally: //所有敌人
|
||||
targets = this.selectAllyTargets();
|
||||
break
|
||||
case TargetGroup.Self: //自身
|
||||
case TGroup.Self: //自身
|
||||
targets = this.HeroView.ent
|
||||
break
|
||||
case TargetGroup.Team: //所有友方
|
||||
case TGroup.Team: //所有友方
|
||||
|
||||
break
|
||||
case TargetGroup.All: //所有单位
|
||||
case TGroup.All: //所有单位
|
||||
|
||||
break
|
||||
}
|
||||
|
||||
|
||||
this.HeroView.playSkillEffect(config.uuid)
|
||||
const skillEntity = ecs.getEntity<Skill>(Skill);
|
||||
if (targets.length === 0) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user