更新随从信息延时

This commit is contained in:
yuexin 2021-01-08 17:34:34 +08:00
parent 5f94c23233
commit e1c31ae8bc

View File

@ -459,13 +459,23 @@ export class BattleHandler {
this.onSkillResultNotify(this._cacheSkills);
this._cacheSkills.length = 0;
}
let nt = this._sktime * 1000;
if(this._cachePets.length > 0){
this.onUpdatePets(this._cachePets, null);
this.checkPets(this._cachePets);
this._cachePets.length = 0;
if(nt > 0){
this._room.clock.setTimeout(()=>{
this.onUpdatePets(this._cachePets, null);
this.checkPets(this._cachePets);
this._cachePets.length = 0;
}, nt);
}else{
this.onUpdatePets(this._cachePets, null);
this.checkPets(this._cachePets);
this._cachePets.length = 0;
}
}
this._flowcount = res;
return this._sktime * 1000;
return nt;
}
this._flowcount = res;