修订时间问题
This commit is contained in:
parent
d26b633d80
commit
9a9b144580
@ -12,7 +12,7 @@ import { PetHandler } from "./PetHandler";
|
||||
import { SKillEffectData, SkillInfoMsg } from "message/SkillInfo";
|
||||
import { PetInfo } from "message/PetInfo";
|
||||
import arrUtil from "../../../utils/array.util";
|
||||
import { debugRoom } from "common/Debug";
|
||||
import { debugRoom } from "../../../common/Debug";
|
||||
|
||||
|
||||
export class BattleHandler {
|
||||
@ -419,23 +419,30 @@ export class BattleHandler {
|
||||
}
|
||||
|
||||
this._flowcount++;
|
||||
|
||||
debugRoom(`[beginFlow]${step}|${this._flowcount}`);
|
||||
};
|
||||
|
||||
public endFlow(step: string){
|
||||
this._flowcount--;
|
||||
if(this._flowcount < 0){
|
||||
let res = this._flowcount - 1;
|
||||
if(res < 0){
|
||||
debugRoom(`[endFlow]${step}[error flowcount]${this._flowcount}`);
|
||||
this._flowcount = 0;
|
||||
res = 0;
|
||||
}
|
||||
if(this._flowcount == 0){
|
||||
|
||||
debugRoom(`[endFlow]${step}|${res}`);
|
||||
|
||||
if(res == 0){
|
||||
if(this._cacheSkills.length > 0){
|
||||
this.onSkillResultNotify(this._cacheSkills);
|
||||
this._cacheSkills.length = 0;
|
||||
}
|
||||
this.checkPets();
|
||||
this._flowcount = res;
|
||||
return this._sktime * 1000;
|
||||
}
|
||||
|
||||
this._flowcount = res;
|
||||
return 0;
|
||||
};
|
||||
//--------------------对外接口(外部调用)----------------------------
|
||||
@ -537,11 +544,13 @@ export class BattleHandler {
|
||||
return 0;
|
||||
}
|
||||
|
||||
this.beginFlow('onCardLinkReady');
|
||||
// this.beginFlow('onCardLinkReady');
|
||||
|
||||
ph.onCardLinkReady(fromph);
|
||||
|
||||
return this.endFlow('onCardLinkReady');
|
||||
// return this.endFlow('onCardLinkReady');
|
||||
|
||||
return 0;
|
||||
};
|
||||
|
||||
/**
|
||||
@ -604,11 +613,12 @@ export class BattleHandler {
|
||||
if(!ph){
|
||||
return 0;
|
||||
}
|
||||
this.beginFlow('onCardDroped');
|
||||
// this.beginFlow('onCardDroped');
|
||||
|
||||
ph.onCardDroped(dropcards, fromph);
|
||||
|
||||
return this.endFlow('onCardDroped');
|
||||
// return this.endFlow('onCardDroped');
|
||||
return 0;
|
||||
};
|
||||
|
||||
/**
|
||||
@ -626,11 +636,12 @@ export class BattleHandler {
|
||||
if(!ph){
|
||||
return 0;
|
||||
}
|
||||
this.beginFlow('onCardGetted');
|
||||
// this.beginFlow('onCardGetted');
|
||||
|
||||
ph.onCardGetted(getcards, fromph);
|
||||
|
||||
return this.endFlow('onCardGetted');
|
||||
// return this.endFlow('onCardGetted');
|
||||
return 0;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user