移动 技能方向基本完善

This commit is contained in:
2025-08-08 20:17:40 +08:00
parent a283e98e98
commit 570812de88
7 changed files with 3305 additions and 858 deletions

View File

@@ -1,6 +1,6 @@
import { _decorator, Component, Node, v3, Vec3 } from 'cc';
import { HeroViewComp } from './HeroViewComp';
import { SkillSet, TGroup, TType } from '../common/config/SkillSet';
import { DTType, SkillSet, SType, 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';
@@ -52,8 +52,10 @@ export class SkillConComp extends CCComp {
this.HeroView.vmHero.cd += dt
}
if(this.HeroView.vmHero.cd > this.HeroView.vmHero.cd_max){
let sc=SkillSet[this.HeroView.skills[1]]
if(!sc) return
if(sc.SType==SType.damage&&!this.HeroView.is_atking) return
this.castSkill(sc,false,0)
this.HeroView.vmHero.cd = 0
}