更新随从信息延时
This commit is contained in:
parent
5f94c23233
commit
e1c31ae8bc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user