还有好多错误
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { _decorator, Component, Node, ProgressBar, v3, Vec3 } from 'cc';
|
||||
import { HeroViewComp } from './HeroViewComp';
|
||||
import { Attrs, SkillSet, SType, TGroup, } from '../common/config/SkillSet';
|
||||
import { Attrs, DBuff, SkillSet, SType, TGroup, } from '../common/config/SkillSet';
|
||||
import { ecs } from 'db://oops-framework/libs/ecs/ECS';
|
||||
import { GameEvent } from '../common/config/GameEvent';
|
||||
import { FacSet } from '../common/config/BoxSet';
|
||||
@@ -32,8 +32,9 @@ export class SkillConComp extends CCComp {
|
||||
|
||||
update(dt: number) {
|
||||
if(!smc.mission.play||smc.mission.pause) return
|
||||
|
||||
if(this.HeroView.DEBUFF_STUN <= 0&&this.HeroView.DEBUFF_FROST <= 0) {
|
||||
const hasStun = this.HeroView.V_DBUFF.some(d => d.debuff === DBuff.STUN);
|
||||
const hasFrost = this.HeroView.V_DBUFF.some(d => d.debuff === DBuff.FROST);
|
||||
if(!hasStun && !hasFrost) {
|
||||
let skills=this.HeroView.skills
|
||||
for(let i=0;i<skills.length;i++){
|
||||
skills[i].cd += dt;
|
||||
|
||||
Reference in New Issue
Block a user