技能cd 完善

This commit is contained in:
2025-08-11 23:13:16 +08:00
parent 919ff09351
commit 13d0a6d190
8 changed files with 22 additions and 894 deletions

View File

@@ -94,8 +94,6 @@ export class HeroViewComp extends CCComp {
cd: number = 1.3; /**攻击速度 攻击间隔 */
cd_buff:number=0;
dis: number = 80;
at: number = 0; /** 冷却时间 */
atk_skill:number=0;
skills:any[]=[]
puncture:number=0; //穿刺敌人伤害后方敌人个数
puncture_damage:number=0; //后伤害加成
@@ -480,7 +478,7 @@ export class HeroViewComp extends CCComp {
break
case DebuffAttr.STUN:
if(this.DEBUFF_STUN>0) return
this.at=0 // 眩晕 cd归零
this.skills[0].cd=0 // 眩晕 cd归零
this.BUFFCOMP.in_yun(deV+FightSet.STUN_TIME) // 眩晕时间
this.DEBUFF_STUN+=deV+FightSet.STUN_TIME // 眩晕时间
// this.is_stop=true