增加回合获胜参数

This commit is contained in:
yuexin 2021-03-30 13:09:15 +08:00
parent 43ccef0d88
commit 5cf0b393cc
2 changed files with 21 additions and 0 deletions

View File

@ -938,6 +938,23 @@ export class BattleHandler {
return this.endFlow('onPlayerRoundEnd');
};
/**
*
* @param aplayer
*/
public onPlayerRoundWin(aplayer: Player){
let ph = this.getPlayer(aplayer);
if(!ph){
return 0;
}
this.beginFlow('onPlayerRoundWin');
ph.onRoundWin();
// this.checkPets();
return this.endFlow('onPlayerRoundWin');
};
/**
*
* @param aplayer

View File

@ -801,6 +801,10 @@ export class PlayerHandler {
this._cardlinkcards = null;
};
onRoundWin(){
};
onGameStart(){
this.checkSkills(TriggerType.PLAYER_BORN);
};