增加回合获胜参数
This commit is contained in:
parent
43ccef0d88
commit
5cf0b393cc
@ -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
|
||||
|
@ -801,6 +801,10 @@ export class PlayerHandler {
|
||||
this._cardlinkcards = null;
|
||||
};
|
||||
|
||||
onRoundWin(){
|
||||
|
||||
};
|
||||
|
||||
onGameStart(){
|
||||
this.checkSkills(TriggerType.PLAYER_BORN);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user