技能cd 完善
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user