英雄召唤基本完成 下一步 满3个英雄后 不再出现其他英雄
This commit is contained in:
@@ -47,8 +47,16 @@ 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) this.HeroView.at += dt;
|
||||
|
||||
if(this.HeroView.DEBUFF_STUN <= 0&&this.HeroView.DEBUFF_FROST <= 0) {
|
||||
this.HeroView.at += dt;
|
||||
this.HeroView.vmHero.cd += dt
|
||||
}
|
||||
if(this.HeroView.vmHero.cd > this.HeroView.vmHero.cd_max){
|
||||
let sc=SkillSet[this.HeroView.skills[1]]
|
||||
if(!sc) return
|
||||
this.castSkill(sc,false,0)
|
||||
this.HeroView.vmHero.cd = 0
|
||||
}
|
||||
let cd = this.count_cd(this.HeroView.cd,this.HeroView)
|
||||
if (this.HeroView.is_atking &&(this.HeroView.at > cd)) {
|
||||
if(this.HeroView.is_dead) return
|
||||
|
||||
Reference in New Issue
Block a user