添加 了 饰品 锤子 + 冰冻同时冻住cd,眩晕则cd归零 后续 需要处理 boss 的技能cd归零和冻结
This commit is contained in:
@@ -164,17 +164,7 @@ export class HeroViewComp extends CCComp {
|
||||
|
||||
change_atk(e:GameEvent,data:any){
|
||||
if(!this.is_master) return
|
||||
if(data.ice){
|
||||
this.atk_skill=6014
|
||||
}else if(data.fire){
|
||||
this.atk_skill=6012
|
||||
}else if(data.wind){
|
||||
this.atk_skill=6013
|
||||
}else{
|
||||
this.atk_skill=6001
|
||||
}
|
||||
|
||||
console.log("[HeroViewComp]:change_atk",SkillSet[this.atk_skill].name)
|
||||
|
||||
}
|
||||
|
||||
get isActive() {
|
||||
@@ -394,6 +384,7 @@ export class HeroViewComp extends CCComp {
|
||||
this.DEBUFF_FROST+=deV
|
||||
break
|
||||
case DebuffAttr.STUN:
|
||||
this.at=0 // 眩晕 cd归零
|
||||
this.BUFFCOMP.in_yun(deV)
|
||||
this.DEBUFF_STUN+=deV
|
||||
this.is_stop=true
|
||||
|
||||
@@ -38,7 +38,7 @@ export class SkillConComp extends CCComp {
|
||||
|
||||
update(dt: number) {
|
||||
if(!smc.mission.play||smc.mission.pause) return
|
||||
if(this.HeroView.DEBUFF_STUN <= 0) this.HeroView.at += dt;
|
||||
if(this.HeroView.DEBUFF_STUN <= 0&&this.HeroView.DEBUFF_FROST <= 0) this.HeroView.at += dt;
|
||||
|
||||
let cd = this.get_cd(this.HeroView.cd,this.HeroView)
|
||||
// console.log(this.HeroView.hero_name+(this.HeroView.is_master?"[主]":"[从] 准备释放")+SkillSet[this.HeroView.atk_skill].name+"=>"+"=>cd:"+cd+"=> count:"+count)
|
||||
|
||||
Reference in New Issue
Block a user