取消掉副英雄
This commit is contained in:
@@ -52,15 +52,12 @@ export class SkillConComp extends CCComp {
|
||||
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)
|
||||
if (this.HeroView.is_atking &&(this.HeroView.at > cd)) {
|
||||
if(this.HeroView.is_dead) return
|
||||
const config = SkillSet[this.HeroView.atk_skill];
|
||||
if (!config) return;
|
||||
// console.log(this.HeroView.hero_name+(this.HeroView.is_master?"[主]":"[从] 释放")+"=>"+config.name+"=>"+count)
|
||||
this.castSkill(config,this.check_wfuny());
|
||||
this.HeroView.master_count_atk_count()
|
||||
this.HeroView.friend_count_atk_count()
|
||||
this.HeroView.count_atk_count()
|
||||
this.HeroView.at = 0;
|
||||
}
|
||||
if (this.aoe_queues.length > 0) {
|
||||
@@ -339,7 +336,6 @@ export class SkillConComp extends CCComp {
|
||||
|
||||
get_buff(view:HeroViewComp){
|
||||
if(view.is_master) return this.FIGHTCON.hero_buff
|
||||
if(view.is_friend) return this.FIGHTCON.friend_buff
|
||||
if(view.is_boss||view.is_kalami) return this.FIGHTCON.enemy_buff
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user